gov.cca.ports
Interface ConnectionEventService

All Superinterfaces:
Port

public interface ConnectionEventService
extends 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:
Component

Method Summary
 void addConnectionEventListener(int connectionEventType, ConnectionEventListener l)
          Sign up to be told about connection activity.
 void removeConnectionEventListener(int connectionEventType, ConnectionEventListener l)
          Ignore future ConnectionEvents of the given type.
 

Method Detail

addConnectionEventListener

void addConnectionEventListener(int connectionEventType,
                                ConnectionEventListener l)
Sign up to be told about connection activity.

Parameters:
connectionEventType - must be one of the integer values defined in
See Also:
ConnectionEvent

removeConnectionEventListener

void removeConnectionEventListener(int connectionEventType,
                                   ConnectionEventListener l)
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:
ConnectionEvent