|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Channel
A Channel is the object that transmits data between a Transmitter and a Receiver. Implementations of this interface will provide, at a minimum, a means by which the transmitter of the same protocol can pass data into the channel, and a means to pass data to the receiver. In general, a channel can perform other functions -- for example, filtering, transforming, or aggregating data.
Channels can have string-named properties attached to them. These properties are defined to have meaning only within a given protocol, and can be used by clients to specify the behavior of a channel.
Method Summary | |
---|---|
void |
connect(Transmitter t,
Receiver r)
Connect this channel between a transmitter and receiver. |
void |
disconnect()
Disconnect this channel from its transmitter and receiver. |
Protocol |
getProtocol()
Get the protocol that this channel implements. |
Receiver |
getReceiver()
Get the Receiver that this channel is attached to, or null if it is not attached. |
Transmitter |
getTransmitter()
Get the Transmitter that this channel is attached to, or null if it is not attached. |
Methods inherited from interface diva.util.PropertyContainer |
---|
getProperty, propertyNames, setProperty |
Method Detail |
---|
Protocol getProtocol()
void connect(Transmitter t, Receiver r)
void disconnect()
Receiver getReceiver()
Transmitter getTransmitter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |