| Modifier and Type | Method and Description |
|---|---|
<T> T |
read(T template,
long waitTime)
The read method can be used to read but not remove an object from the
space.
|
java.lang.Object |
snapshot(java.lang.Object template)
Snapshot will make a copy of an object which may help the stub prepare
the object for submission to the space.
|
<T> T |
take(T template,
long waitTime)
The Take method uses the same matching strategy as the read method via the
template, however if an object is matched under this (take) method the object
is removed from the space and returned.
|
long |
write(java.lang.Object entry,
long leaseTime)
The write method will write an entry into the fly space for the
amount of time given in the in the lease parameter.
|
long write(java.lang.Object entry,
long leaseTime)
entry - - The object to put in the FlyPrimeleaseTime - - The time in milliseconds the object will live in the Space<T> T read(T template,
long waitTime)
template - - The object template to match in the space.waitTime - - Time in milliseconds to wait before the object is matched.<T> T take(T template,
long waitTime)
template - - The object template to match in the space.waitTime - - The time to wait in milliseconds for the template to be matched.java.lang.Object snapshot(java.lang.Object template)
template - object