JSR-043: JTAPI-1.4

javax.telephony.media.connection
Interface MediaConnection.Token

All Known Subinterfaces:
Async_MediaConnectionEvent, MediaConnectionEvent
All Known Implementing Classes:
Base_MediaConnectionEvent.Token
Enclosing class:
MediaConnection

public static interface MediaConnection.Token

Each Token represents a connection between the the MediaGroups of two bound MediaService objects.

Note: The Token contains implementation-specific information that identifies the particular connection-streams. Typically, the Token identifies two connected MediaGroups.


Method Summary
 boolean equals(java.lang.Object other)
          Tokens are equal iff they refer to a connection between the same two MediaGroups.
 Symbol getDataFlow()
          Return the DataFLow Symbol for this connection.
 Symbol getMaxDataFlow()
          Return the MaxDataFLow Symbol for this connection.
 Symbol getType()
          Indicate the type of connection.
 

Method Detail

getType

public Symbol getType()
Indicate the type of connection.

Note: For disconnect events, Loopback and Bridge may be concealed as Primary and Secondary, respectively.

Returns:
one of v_Bridge, v_Join, v_Loopback.

getDataFlow

public Symbol getDataFlow()
Return the DataFLow Symbol for this connection.
Returns:
one of v_Listen, v_Talk, v_Both, v_None

getMaxDataFlow

public Symbol getMaxDataFlow()
Return the MaxDataFLow Symbol for this connection.
Returns:
one of v_Listen, v_Talk, v_Both

equals

public boolean equals(java.lang.Object other)
Tokens are equal iff they refer to a connection between the same two MediaGroups.

Note: the Token from connect() (or onConnection()) is equal to the Token from the corresponding onConnected().

Note: the Token from ms1.connect(ms2) is equal to the Token from ms1.disconnect(ms2)

Note: the token from ms1.bridge(ms2) is not equal to the Token from ms2.bridge(ms1)

Overrides:
equals in class java.lang.Object

JSR-043: JTAPI-1.4

Send comments to: JSR-43@ectf.org