com.notnoop.apns.internal
Class ApnsPooledConnection

java.lang.Object
  extended by com.notnoop.apns.internal.ApnsPooledConnection
All Implemented Interfaces:
ApnsConnection, Closeable

public class ApnsPooledConnection
extends Object
implements ApnsConnection


Field Summary
 
Fields inherited from interface com.notnoop.apns.internal.ApnsConnection
DEFAULT_CACHE_LENGTH
 
Constructor Summary
ApnsPooledConnection(ApnsConnection prototype, int max)
           
ApnsPooledConnection(ApnsConnection prototype, int max, ExecutorService executors)
           
 
Method Summary
 void close()
           
 ApnsConnection copy()
           
 int getCacheLength()
           
 void sendMessage(ApnsNotification m)
           
 void setCacheLength(int cacheLength)
           
 void testConnection()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApnsPooledConnection

public ApnsPooledConnection(ApnsConnection prototype,
                            int max)

ApnsPooledConnection

public ApnsPooledConnection(ApnsConnection prototype,
                            int max,
                            ExecutorService executors)
Method Detail

sendMessage

public void sendMessage(ApnsNotification m)
                 throws NetworkIOException
Specified by:
sendMessage in interface ApnsConnection
Throws:
NetworkIOException

copy

public ApnsConnection copy()
Specified by:
copy in interface ApnsConnection

close

public void close()
Specified by:
close in interface Closeable

testConnection

public void testConnection()
Specified by:
testConnection in interface ApnsConnection

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.