The ConnectionStateListener interface, when implemented, enables you to receive notifications when any of this DOF's connections, either inbound
or outbound, are established or go down.
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
public interface ConnectionStateListener
The DOFRuntimeConnectionStateListener type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | removed |
Called when this listener is removed from the DOF.Runtime, either through use of
Runtime.removeConnectionListener(ConnectionStateListener)
or because an exception caused the listener to be removed. Use this method to free any resources
allocated in association with this listener. After this method is called, the listener will no longer be called.
You may leave this method empty to ignore notification of removal.
|
![]() | stateChanged |
Called whenever the
State.isConnected()
value changes for any of the DOF's connections.
This method is called immediately for all connections when the listener is added, and then will be called whenever a connection's
connected state changes. For each connection, the library guarantees that calls to this method will occur in the same order
as the associated state change, so that, for example, if a connection rapidly connects and then disconnects, you won't mistakenly
receive the disconnect notification before the connect notification.
|
Remarks
See Also
Reference
StateListener