Package gov.cca.ports
Interface ConnectionEventService
- All Superinterfaces:
Port
A service to alert a component as when connections are made or broken; it is
reasonable to expect this service to be immediately available and fetchable during
a setServices call. This service interface is compatible with a direct-connected
framework.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddConnectionEventListener(int connectionEventType, ConnectionEventListener l) Sign up to be told about connection activity.voidremoveConnectionEventListener(int connectionEventType, ConnectionEventListener l) Ignore future ConnectionEvents of the given type.
-
Method Details
-
addConnectionEventListener
Sign up to be told about connection activity.- Parameters:
connectionEventType- must be one of the integer values defined in- See Also:
-
removeConnectionEventListener
Ignore future ConnectionEvents of the given type. Removing a non-added listener is not an error.- Parameters:
connectionEventType- must be one of the integer values defined in- See Also:
-