|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.engine.io.ChannelManager
Maintains a link between inputs and outputs.
A channel is simply the association of an input and an output.
The manager closes both input and ouput when one of them is closed.
Constructor Summary | |
ChannelManager()
Create a channel manager. |
Method Summary | |
void |
close()
Close all inputs and outputs. |
void |
closed(IInput input)
Notify the closing of an input. |
void |
closed(IOutput output)
Notify the closing of an output. |
void |
opened(IInput input,
IOutput output)
Notify the opening of an input and/or output. |
void |
register(IChannelObserver observer)
Register a channel observer. |
void |
register(IStatusObserver observer)
Register a status observer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ChannelManager()
Method Detail |
public final void register(IChannelObserver observer)
observer
- the observerpublic final void register(IStatusObserver observer)
observer
- the observerpublic final void opened(IInput input, IOutput output)
opened
in interface IConnectionObserver
input
- the input or null if noneoutput
- the input or null if nonepublic final void closed(IInput input)
closed
in interface IDisconnectionObserver
input
- the closed inputpublic final void closed(IOutput output)
closed
in interface IDisconnectionObserver
output
- the closed outputpublic final void close()
close
in interface ISessionManager
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |