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()
ReconnectPolicy
true
if the library should initiate a new
connection for sending the message.
The library calls this method at every message push.shouldReconnect
in interface ReconnectPolicy
public void reconnected()
ReconnectPolicy
reconnected
in interface ReconnectPolicy
public ReconnectPolicies.EveryHalfHour copy()
ReconnectPolicy
copy
in interface ReconnectPolicy
Copyright © 2015. All rights reserved.