|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--omnisockets.OmniMessage
When a message is received on an OmniSocket, the socket creates an OmniMessage of the appropriate type, and runs its message handler in a thread. The message thread is a daemon thread and has the same priority as the OmniSocket that created it. The message priority can be modified by raising or lowering the OmniSocket priority.
OmniSocket,
Serialized Form| Constructor Summary | |
OmniMessage()
|
|
| Method Summary | |
omnisockets.OmniListener |
getListener()
Returns the listener. |
omnisockets.OmniSocket |
getSocket()
Returns the socket. |
void |
run()
Runs the virtual message handler, invoked by the OmniSocket when a message is received on the socket. |
omnisockets.OmniListener |
setListener(omnisockets.OmniListener listener)
Sets the listener. |
omnisockets.OmniSocket |
setSocket(omnisockets.OmniSocket socket)
Sets the socket. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OmniMessage()
| Method Detail |
public omnisockets.OmniListener getListener()
public omnisockets.OmniListener setListener(omnisockets.OmniListener listener)
public omnisockets.OmniSocket getSocket()
public omnisockets.OmniSocket setSocket(omnisockets.OmniSocket socket)
public void run()
run in interface java.lang.RunnableOmniSocket.run()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||