|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjtge.engine.io.Output
Handles the output logics.
It acts as the abstraction in the bridge pattern.
| Constructor Summary | |
Output(IDisconnectionObserver observer,
IOutputImp output)
Create an output. |
|
| Method Summary | |
void |
close()
Close the output. This method must be callable from a thread while another one consumes the command. |
void |
handle(ICommand command)
Handle a command. |
boolean |
isClosed()
Check whether the output is closed or not. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Output(IDisconnectionObserver observer,
IOutputImp output)
observer - the observeroutput - the output implementation| Method Detail |
public final void handle(ICommand command)
handle in interface IConsumercommand - the command to handlepublic final void close()
This method must be callable from a thread while another one consumes the command.
close in interface IOutputpublic final boolean isClosed()
isClosed in interface IOutput
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||