JSR-043: JTAPI-1.4

javax.telephony.media.connection
Interface MediaConnectionListener

All Superinterfaces:
java.util.EventListener, MediaListener

public interface MediaConnectionListener
extends MediaListener

For non-Transactional connection events.

Since:
JTAPI-1.4

Method Summary
 void onConnect(MediaConnectionEvent event)
          Notification that a connection has been made to the Group bound to this MediaService.
 void onDisconnect(MediaConnectionEvent event)
          Notification that some connection has been removed.
 void onSetDataFlow(MediaConnectionEvent event)
          DataFlow for connnection has changed.
 

Method Detail

onConnect

public void onConnect(MediaConnectionEvent event)
Notification that a connection has been made to the Group bound to this MediaService. The method that created the connection is indicated by the EventID = {ev_Bridge, ev_Join, ev_Loopback}.

The Token identifies the other Group, and contains the initialDataFlow and maxDataFlow. Token.getType() == event.getEventID().

Parameters:
event - a MediaConnectionEvent that identifies the connection/Token.

onDisconnect

public void onDisconnect(MediaConnectionEvent event)
Notification that some connection has been removed.

The Token identifies the connection and Group which has been disconnected. dataFlow and maxDataFlow are null.

EventID = connType = ev_Disconnect.

Parameters:
event - a MediaConnectionEvent that identifies the connection/Token.

onSetDataFlow

public void onSetDataFlow(MediaConnectionEvent event)
DataFlow for connnection has changed. event.getEventID() = ev_SetDataFlow.

The event.getToken() identifies the connection which has been effected. Token.dataFlow and Token.maxDataFlow are null.

event.getEventID() = connType = ev_Disconnect.

Parameters:
event - a MediaConnectionEvent that identifies the connection/Token.

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org