|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WarmStandbyConnectionFailureContext
Connection failure context interface will be provided by WarmStandbyService to custom WarmStandbyConnectionFailureHandler in case of connection failure.
WarmStandbyConnectionFailureHandler
,
WarmStandbyService
Method Summary | |
---|---|
void |
doStandbyOff()
Sets service state to "off" and clears reconnect counters. |
void |
doSwitchover()
Requests to change "active" and "standby" endpoints of the WarmStandby service. |
ChannelClosedEvent |
getEvent()
Gets the reason of the connection failure. |
WarmStandbyService |
getService()
Gets the service instance where connection failure happened. |
void |
scheduleReconnect(long millisecDelay)
This method allows user to notify the WarmStandby service when channel reopen action should be done after current failure event. |
Method Detail |
---|
ChannelClosedEvent getEvent()
WarmStandbyService getService()
void doSwitchover()
scheduleReconnect()
should be called to schedule the connection reopen task.
scheduleReconnect(long)
void doStandbyOff()
void scheduleReconnect(long millisecDelay)
millisecDelay
- delay before reopen try
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |