Interface fi.hut.tcm.jacob.conduits.Accessor
- public abstract interface Accessor
Accessor
Accessor defines an abstract interface for the Mux to obtain and
encapsulate Muxing information on Messages.
Method Summary
|
java.lang.Object
|
getKey(Message message)
Extracts or decodes a key value from a message for demultiplexing.
|
void
|
setKey(Message message,
java.lang.Object key)
Encodes or attaches demultiplexing information to a Message. |
void
|
unsetKey(Message message)
|
getKey
public java.lang.Object getKey(Message message)
- Extracts or decodes a key value from a message for demultiplexing.
Called by Mux.mux when a message has arrived from side A, and should be
routed through side B.
setKey
public void setKey(Message message,
java.lang.Object key)
- Encodes or attaches demultiplexing information to a Message. Called by
Mux.mux when a message traverses from some side B towards side A. The
key is the particular key value attached to the Conduit the message is
arriving from.
unsetKey
public void unsetKey(Message message)