|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EndPoint
Represents the local end point of a connection.
Method Summary | |
---|---|
void |
addListener(Listener listener)
If the listener already exists, it is not added again. |
void |
close()
|
com.esotericsoftware.kryo.Kryo |
getKryo()
Gets the Kryo instance that will be used to serialize and deserialize objects. |
java.lang.Thread |
getUpdateThread()
Returns the last thread that called update(int) for this end point. |
void |
removeListener(Listener listener)
|
void |
run()
Continually updates this end point until stop() is called. |
void |
start()
Starts a new thread that calls run() . |
void |
stop()
Closes this end point and causes run() to return. |
void |
update(int timeout)
|
Method Detail |
---|
com.esotericsoftware.kryo.Kryo getKryo()
void addListener(Listener listener)
void removeListener(Listener listener)
void run()
stop()
is called.
run
in interface java.lang.Runnable
void start()
run()
.
void stop()
run()
to return.
void close()
Client
,
Server
void update(int timeout) throws java.io.IOException
java.io.IOException
Client.update(int)
,
Server.update(int)
java.lang.Thread getUpdateThread()
update(int)
for this end point. This can be useful to detect when long running
code will be run on the update thread.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |