com.notnoop.apns.internal
Class ApnsConnectionImpl
java.lang.Object
com.notnoop.apns.internal.ApnsConnectionImpl
- All Implemented Interfaces:
- ApnsConnection, Closeable
public class ApnsConnectionImpl
- extends Object
- implements ApnsConnection
|
Constructor Summary |
ApnsConnectionImpl(SocketFactory factory,
String host,
int port)
|
ApnsConnectionImpl(SocketFactory factory,
String host,
int port,
Proxy proxy,
ReconnectPolicy reconnectPolicy,
ApnsDelegate delegate)
|
ApnsConnectionImpl(SocketFactory factory,
String host,
int port,
Proxy proxy,
ReconnectPolicy reconnectPolicy,
ApnsDelegate delegate,
boolean errorDetection,
int cacheLength,
boolean autoAdjustCacheLength)
|
ApnsConnectionImpl(SocketFactory factory,
String host,
int port,
ReconnectPolicy reconnectPolicy,
ApnsDelegate delegate)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApnsConnectionImpl
public ApnsConnectionImpl(SocketFactory factory,
String host,
int port)
ApnsConnectionImpl
public ApnsConnectionImpl(SocketFactory factory,
String host,
int port,
ReconnectPolicy reconnectPolicy,
ApnsDelegate delegate)
ApnsConnectionImpl
public ApnsConnectionImpl(SocketFactory factory,
String host,
int port,
Proxy proxy,
ReconnectPolicy reconnectPolicy,
ApnsDelegate delegate)
ApnsConnectionImpl
public ApnsConnectionImpl(SocketFactory factory,
String host,
int port,
Proxy proxy,
ReconnectPolicy reconnectPolicy,
ApnsDelegate delegate,
boolean errorDetection,
int cacheLength,
boolean autoAdjustCacheLength)
close
public void close()
- Specified by:
close in interface Closeable
sendMessage
public void sendMessage(ApnsNotification m)
throws NetworkIOException
- Specified by:
sendMessage in interface ApnsConnection
- Throws:
NetworkIOException
sendMessage
public void sendMessage(ApnsNotification m,
boolean fromBuffer)
throws NetworkIOException
- Throws:
NetworkIOException
copy
public ApnsConnectionImpl copy()
- Specified by:
copy in interface ApnsConnection
testConnection
public void testConnection()
throws NetworkIOException
- Specified by:
testConnection in interface ApnsConnection
- Throws:
NetworkIOException
setCacheLength
public void setCacheLength(int cacheLength)
- Specified by:
setCacheLength in interface ApnsConnection
getCacheLength
public int getCacheLength()
- Specified by:
getCacheLength in interface ApnsConnection
Copyright © 2013. All Rights Reserved.