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