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 Closeable
close
in interface AutoCloseable
public void sendMessage(ApnsNotification m) throws NetworkIOException
sendMessage
in interface ApnsConnection
NetworkIOException
public ApnsConnectionImpl copy()
copy
in interface ApnsConnection
public void testConnection() throws NetworkIOException
testConnection
in interface ApnsConnection
NetworkIOException
public void setCacheLength(int cacheLength)
setCacheLength
in interface ApnsConnection
public int getCacheLength()
getCacheLength
in interface ApnsConnection
Copyright © 2015. All rights reserved.