Package org.vrspace.server.core
Class WriteBack
java.lang.Object
org.vrspace.server.core.WriteBack
Experimental thread-safe write-back component. Clients may send more events
than can be stored into the database. Typically, the most frequent events
originate from client movement. While movement events need to be propagated,
they doesn't need to be persisted each and every time, as long as client
coordinates are consistent overall. This component collects all changed
objects, and saves them after configurable delay, all in one one batch. Used
by WorldManager.
- Author:
- joe
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
WriteBack
-
-
Method Details
-
flush
public void flush() -
size
public int size() -
writes
public long writes() -
writeRequests
public long writeRequests() -
write
-
delete
-
setActive
public void setActive(boolean active) -
isActive
public boolean isActive() -
setDelay
public void setDelay(long delay) -
getDelay
public long getDelay()
-