Package sk.ipesoft.d2000.d2japi
Interface D2SessionEventsListener
-
- All Known Subinterfaces:
D2SessionEventsListener4
,D2SessionEventsListener5
public interface D2SessionEventsListener
Listener interface for receiving asynchronous events aboutD2Session
instance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onClose(CloseReason reason)
Called when session is being closed.void
onRedundancyStateChanged(RedundancyStateType redundancyState)
Called when D2000 kernel redundancy state has been changed.void
onRTIReceived(java.lang.String command)
Called when asynchronous RTI command is received.void
onSessionCreated(D2Session session)
Called when new session is created.void
onTerminateRequest()
Called when kernel issues terminate request to the current session instance.
-
-
-
Method Detail
-
onClose
void onClose(CloseReason reason)
Called when session is being closed.- Parameters:
reason
- reason for session being closed
-
onRedundancyStateChanged
void onRedundancyStateChanged(RedundancyStateType redundancyState)
Called when D2000 kernel redundancy state has been changed. It happens when multiple instances of kernel are joined in redundancy group and state of being "hot" is transferred from one instance to another.Note: While
redundancyStateChange
is being executedD2Session.getRedundancyState()
returns previous state. It changes to the current state immediately after this call returns.- Parameters:
redundancyState
- current state of kernel that the session is attached to
-
onRTIReceived
void onRTIReceived(java.lang.String command)
Called when asynchronous RTI command is received.- Parameters:
command
- raw command string
-
onSessionCreated
void onSessionCreated(D2Session session)
Called when new session is created.- Parameters:
session
- new session instance
-
onTerminateRequest
void onTerminateRequest()
Called when kernel issues terminate request to the current session instance.
-
-