com.notnoop.apns.internal
Class ApnsConnectionImpl

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

public class ApnsConnectionImpl
extends Object
implements ApnsConnection


Field Summary
 
Fields inherited from interface com.notnoop.apns.internal.ApnsConnection
DEFAULT_CACHE_LENGTH
 
Constructor Summary
ApnsConnectionImpl(SocketFactory factory, String host, int port)
           
ApnsConnectionImpl(SocketFactory factory, String host, int port, Proxy proxy, ReconnectPolicy reconnectPolicy, ApnsDelegate delegate)
           
ApnsConnectionImpl(SocketFactory factory, String host, int port, Proxy proxy, ReconnectPolicy reconnectPolicy, ApnsDelegate delegate, boolean errorDetection, int cacheLength, boolean autoAdjustCacheLength)
           
ApnsConnectionImpl(SocketFactory factory, String host, int port, ReconnectPolicy reconnectPolicy, ApnsDelegate delegate)
           
 
Method Summary
 void close()
           
 ApnsConnectionImpl copy()
           
 int getCacheLength()
           
 void sendMessage(ApnsNotification m)
           
 void sendMessage(ApnsNotification m, boolean fromBuffer)
           
 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

ApnsConnectionImpl

public ApnsConnectionImpl(SocketFactory factory,
                          String host,
                          int port)

ApnsConnectionImpl

public ApnsConnectionImpl(SocketFactory factory,
                          String host,
                          int port,
                          ReconnectPolicy reconnectPolicy,
                          ApnsDelegate delegate)

ApnsConnectionImpl

public ApnsConnectionImpl(SocketFactory factory,
                          String host,
                          int port,
                          Proxy proxy,
                          ReconnectPolicy reconnectPolicy,
                          ApnsDelegate delegate)

ApnsConnectionImpl

public ApnsConnectionImpl(SocketFactory factory,
                          String host,
                          int port,
                          Proxy proxy,
                          ReconnectPolicy reconnectPolicy,
                          ApnsDelegate delegate,
                          boolean errorDetection,
                          int cacheLength,
                          boolean autoAdjustCacheLength)
Method Detail

close

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

sendMessage

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

sendMessage

public void sendMessage(ApnsNotification m,
                        boolean fromBuffer)
                 throws NetworkIOException
Throws:
NetworkIOException

copy

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

testConnection

public void testConnection()
                    throws NetworkIOException
Specified by:
testConnection in interface ApnsConnection
Throws:
NetworkIOException

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.