Package sk.ipesoft.d2000.d2japi
Interface RedundantConnectionEventListener
-
public interface RedundantConnectionEventListener
An event listener that is notified on connection state changes byRedundantConnectionManager
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onConnectionEstablished(ConnectionParameters parameters)
Method is called when new instance ofD2Connector
has been obtained.void
onConnectionLost(ConnectionParameters parameters, CloseReason reason)
Method is called when instance ofD2Connector
has been disconnected.void
onHotConnectorLost(D2Connector previousHotConnector)
Called when previously HOT kernel changes state.void
onNewHotConnectorRecognized(D2Connector newHotConnector)
Called when another kernel becomes HOT and reconnection is required.
-
-
-
Method Detail
-
onConnectionEstablished
void onConnectionEstablished(ConnectionParameters parameters)
Method is called when new instance ofD2Connector
has been obtained.- Parameters:
parameters
- remote address and port of connector
-
onConnectionLost
void onConnectionLost(ConnectionParameters parameters, CloseReason reason)
Method is called when instance ofD2Connector
has been disconnected.- Parameters:
parameters
- remote address and port of connectorreason
- specifies the close reason
-
onNewHotConnectorRecognized
void onNewHotConnectorRecognized(D2Connector newHotConnector)
Called when another kernel becomes HOT and reconnection is required.- Parameters:
newHotConnector
- connection to HOT kernel.
-
onHotConnectorLost
void onHotConnectorLost(D2Connector previousHotConnector)
Called when previously HOT kernel changes state. Another kernel should become HOT shortly.- Parameters:
previousHotConnector
- connection to previously HOT kernel.
-
-