com.notnoop.apns.internal
Class ReconnectPolicies.Always

java.lang.Object
  extended by com.notnoop.apns.internal.ReconnectPolicies.Always
All Implemented Interfaces:
ReconnectPolicy
Enclosing class:
ReconnectPolicies

public static class ReconnectPolicies.Always
extends Object
implements ReconnectPolicy


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.notnoop.apns.ReconnectPolicy
ReconnectPolicy.Provided
 
Constructor Summary
ReconnectPolicies.Always()
           
 
Method Summary
 ReconnectPolicies.Always copy()
          Returns a deep copy of this reconnection policy, if needed.
 void reconnected()
          Callback method to be called whenever the library makes a new connection
 boolean shouldReconnect()
          Returns true if the library should initiate a new connection for sending the message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReconnectPolicies.Always

public ReconnectPolicies.Always()
Method Detail

shouldReconnect

public boolean shouldReconnect()
Description copied from interface: ReconnectPolicy
Returns true if the library should initiate a new connection for sending the message. The library calls this method at every message push.

Specified by:
shouldReconnect in interface ReconnectPolicy
Returns:
true if the library should be reconnected

reconnected

public void reconnected()
Description copied from interface: ReconnectPolicy
Callback method to be called whenever the library makes a new connection

Specified by:
reconnected in interface ReconnectPolicy

copy

public ReconnectPolicies.Always copy()
Description copied from interface: ReconnectPolicy
Returns a deep copy of this reconnection policy, if needed. Subclasses may return this instance if the object is immutable.

Specified by:
copy in interface ReconnectPolicy


Copyright © 2013. All Rights Reserved.