public class ApnsConnectionImpl extends Object implements ApnsConnection
DEFAULT_CACHE_LENGTH| Constructor and Description |
|---|
ApnsConnectionImpl(SocketFactory factory,
String host,
int port) |
ApnsConnectionImpl(SocketFactory factory,
String host,
int port,
Proxy proxy,
String proxyUsername,
String proxyPassword,
ReconnectPolicy reconnectPolicy,
ApnsDelegate delegate,
boolean errorDetection,
ThreadFactory tf,
int cacheLength,
boolean autoAdjustCacheLength,
int readTimeout,
int connectTimeout) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ApnsConnectionImpl |
copy() |
int |
getCacheLength() |
void |
sendMessage(ApnsNotification m) |
void |
setCacheLength(int cacheLength) |
void |
testConnection() |
public ApnsConnectionImpl(SocketFactory factory, String host, int port)
public ApnsConnectionImpl(SocketFactory factory, String host, int port, Proxy proxy, String proxyUsername, String proxyPassword, ReconnectPolicy reconnectPolicy, ApnsDelegate delegate, boolean errorDetection, ThreadFactory tf, int cacheLength, boolean autoAdjustCacheLength, int readTimeout, int connectTimeout)
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void sendMessage(ApnsNotification m) throws NetworkIOException
sendMessage in interface ApnsConnectionNetworkIOExceptionpublic ApnsConnectionImpl copy()
copy in interface ApnsConnectionpublic void testConnection()
throws NetworkIOException
testConnection in interface ApnsConnectionNetworkIOExceptionpublic void setCacheLength(int cacheLength)
setCacheLength in interface ApnsConnectionpublic int getCacheLength()
getCacheLength in interface ApnsConnectionCopyright © 2015. All rights reserved.