synergynetframework.appsystem.services.net.objectmessaging
Interface EndPoint

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
Client, Server

public interface EndPoint
extends java.lang.Runnable

The Interface EndPoint.


Method Summary
 void addMessageHandler(MessageHandler handler)
          Adds the message handler.
 void close()
          Close.
 java.lang.Thread getUpdateThread()
          Gets the update thread.
 void removeMessageHandler(MessageHandler handler)
          Removes the message handler.
 void run()
           
 void stop()
          Stop.
 void update(int timeout)
          Update.
 

Method Detail

addMessageHandler

void addMessageHandler(MessageHandler handler)
Adds the message handler.

Parameters:
handler - the handler

close

void close()
Close.


getUpdateThread

java.lang.Thread getUpdateThread()
Gets the update thread.

Returns:
the update thread

removeMessageHandler

void removeMessageHandler(MessageHandler handler)
Removes the message handler.

Parameters:
handler - the handler

run

void run()
Specified by:
run in interface java.lang.Runnable

stop

void stop()
Stop.


update

void update(int timeout)
            throws java.io.IOException,
                   SerializationException
Update.

Parameters:
timeout - the timeout
Throws:
java.io.IOException - Signals that an I/O exception has occurred.
SerializationException - the serialization exception