public class ApnsPooledConnection extends Object implements ApnsConnection
DEFAULT_CACHE_LENGTH| Constructor and Description |
|---|
ApnsPooledConnection(ApnsConnection prototype,
int max) |
ApnsPooledConnection(ApnsConnection prototype,
int max,
ExecutorService executors) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ApnsConnection |
copy() |
int |
getCacheLength() |
void |
sendMessage(ApnsNotification m) |
void |
setCacheLength(int cacheLength) |
void |
testConnection() |
public ApnsPooledConnection(ApnsConnection prototype, int max)
public ApnsPooledConnection(ApnsConnection prototype, int max, ExecutorService executors)
public void sendMessage(ApnsNotification m) throws NetworkIOException
sendMessage in interface ApnsConnectionNetworkIOExceptionpublic ApnsConnection copy()
copy in interface ApnsConnectionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void testConnection()
testConnection in interface ApnsConnectionpublic void setCacheLength(int cacheLength)
setCacheLength in interface ApnsConnectionpublic int getCacheLength()
getCacheLength in interface ApnsConnectionCopyright © 2015. All rights reserved.