Platform SDK Java 8.5 API Reference

com.genesyslab.platform.applicationblocks.warmstandby
Interface WarmStandbyConnectionFailureContext


public interface WarmStandbyConnectionFailureContext

Connection failure context interface will be provided by WarmStandbyService to custom WarmStandbyConnectionFailureHandler in case of connection failure.

See Also:
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

getEvent

ChannelClosedEvent getEvent()
Gets the reason of the connection failure.

Returns:
channel closed event

getService

WarmStandbyService getService()
Gets the service instance where connection failure happened.

Returns:
WarmStandby service reference

doSwitchover

void doSwitchover()
Requests to change "active" and "standby" endpoints of the WarmStandby service. After this operation scheduleReconnect() should be called to schedule the connection reopen task.

See Also:
scheduleReconnect(long)

doStandbyOff

void doStandbyOff()
Sets service state to "off" and clears reconnect counters.


scheduleReconnect

void scheduleReconnect(long millisecDelay)
This method allows user to notify the WarmStandby service when channel reopen action should be done after current failure event. It will initiate beginOpen() procedure on the protocol connection instance served by the current WarmStandbyService.

Parameters:
millisecDelay - delay before reopen try

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.