public static class ReconnectPolicies.EveryHalfHour extends Object implements ReconnectPolicy
ReconnectPolicy.Provided| Constructor and Description |
|---|
EveryHalfHour() |
| Modifier and Type | Method and Description |
|---|---|
ReconnectPolicies.EveryHalfHour |
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. |
public boolean shouldReconnect()
ReconnectPolicytrue if the library should initiate a new
connection for sending the message.
The library calls this method at every message push.shouldReconnect in interface ReconnectPolicypublic void reconnected()
ReconnectPolicyreconnected in interface ReconnectPolicypublic ReconnectPolicies.EveryHalfHour copy()
ReconnectPolicycopy in interface ReconnectPolicyCopyright © 2015. All rights reserved.