public interface ITransceiver extends IPlugin, IStreamer
| Modifier and Type | Field and Description |
|---|---|
static int |
EVENT_TRANCEIVER_DISABLED
An event type constant that signals that the transceiver has been disabled.
|
static int |
EVENT_TRANCEIVER_ENABLED
An event type constant that signals that the transceiver has been enabled.
|
EXTENSION_COMPRESSION, EXTENSION_DISCOVERY, EXTENSION_ENCRYPTION, EXTENSION_ROUTING, EXTENSION_SEMANTIC, EXTENSION_SERIALIZATION, EXTENSION_TRANSCEIVER| Modifier and Type | Method and Description |
|---|---|
void |
addTransceiverListener(int type,
IListener listener)
Adds a listener to the transceiver that signals changes to the state of
the transceiver.
|
boolean |
isEnabled()
Determines whether this communication transceiver is enabled.
|
IPacketConnector |
openGroup()
Opens an outgoing or incoming packet based connector that exchanges
packets with other devices using broadcast semantics.
|
boolean |
removeTransceiverListener(int type,
IListener listener)
Removes the specified listener for the specified set of event types.
|
void |
setEnabled(boolean enabled)
Enables or disables this communication transceiver.
|
void |
setTransceiverManager(ITransceiverManager manager)
Sets the plug-in manager of this plug-in.
|
getPluginDescription, start, stopopenSession, prepareSessionstatic final int EVENT_TRANCEIVER_ENABLED
static final int EVENT_TRANCEIVER_DISABLED
void setTransceiverManager(ITransceiverManager manager)
manager - The manager of the plug-in.void addTransceiverListener(int type,
IListener listener)
type - The type of event to register for. At the present time the
transceiver must support EVENT_TRANCEIVER_ENABLED and EVENT_TRANCEIVER_DISABLED
events.listener - The listener to register for the specified events.java.lang.NullPointerException - Thrown if the listener that is registered
is null.boolean removeTransceiverListener(int type,
IListener listener)
type - The types of events to unregister.listener - The listener to unregister for the specified types of
events.java.lang.NullPointerException - Thrown if the listener that should be
unregistered is null.void setEnabled(boolean enabled)
enabled - True to enable the communication transceiver, false to
disable.boolean isEnabled()
IPacketConnector openGroup() throws java.io.IOException
java.io.IOException - Thrown if the connector cannot be opened.