Modifier and Type | Method and Description |
---|---|
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.
|
Serialization |
getSerialization()
Gets the serialization 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) |
Serialization getSerialization()
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 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.com.esotericsoftware.kryo.Kryo getKryo()
KryoSerialization
is being used, which is the default.