Package org.vrspace.server.core
Class WriteBack
- java.lang.Object
-
- org.vrspace.server.core.WriteBack
-
@Component public class WriteBack extends Object
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:
WorldManager
-
-
Constructor Summary
Constructors Constructor Description WriteBack(VRObjectRepository db)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(VRObject o)
void
flush()
int
size()
void
write(VRObject o)
long
writeRequests()
long
writes()
-
-
-
Constructor Detail
-
WriteBack
public WriteBack(VRObjectRepository db)
-
-