| Constructor and Description |
|---|
FlyStub(java.net.InetAddress addr,
FieldCodec fieldCodec) |
FlyStub(java.lang.String hostname,
FieldCodec fieldCodec) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
notify(java.lang.Object template,
NotifyHandler handler,
long leaseTime)
Deprecated.
|
boolean |
notifyTake(java.lang.Object template,
Notifiable handler,
long leaseTime)
The notifyTake method sets up a template object in the Fly Space.
|
boolean |
notifyWrite(java.lang.Object template,
Notifiable handler,
long leaseTime)
The notifyWrite method sets up a template object in the Fly Space.
|
java.lang.Object |
read(java.lang.Object template,
long timeout)
The read method can be used to read but not remove an object from the
space.
|
java.util.Collection |
readMany(java.lang.Object template,
long matchLimit)
The readMany method can be used to read but not remove a number of objects
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.
|
java.lang.Object |
take(java.lang.Object template,
long timeout)
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.
|
java.util.Collection |
takeMany(java.lang.Object template,
long matchLimit)
The takeMany method can be used to take (remove) a number of objects
from the space.
|
long |
write(java.lang.Object entry,
long lease)
The write method will write an entry into the fly space for the
amount of time given in the in the lease parameter.
|
long |
writeMany(java.util.Collection entries,
long lease)
The writeMany method will write a collection of entry objects into the space
for amount of time given in the in the lease parameter.
|
public FlyStub(java.lang.String hostname,
FieldCodec fieldCodec)
public FlyStub(java.net.InetAddress addr,
FieldCodec fieldCodec)
public java.lang.Object read(java.lang.Object template,
long timeout)
FlyPrimepublic java.lang.Object take(java.lang.Object template,
long timeout)
FlyPrimepublic long write(java.lang.Object entry,
long lease)
FlyPrimewrite in interface FlyPrimeentry - - The object to put in the FlyPrimelease - - The time in milliseconds the object will live in the Spacepublic java.lang.Object snapshot(java.lang.Object template)
FlyPrimepublic long writeMany(java.util.Collection entries,
long lease)
MultiFlywriteMany in interface MultiFlyentries - - The object to put in the Spacelease - - The time in milliseconds the objects will live in the Spacepublic java.util.Collection readMany(java.lang.Object template,
long matchLimit)
MultiFlypublic java.util.Collection takeMany(java.lang.Object template,
long matchLimit)
MultiFly@Deprecated
public boolean notify(java.lang.Object template,
NotifyHandler handler,
long leaseTime)
public boolean notifyWrite(java.lang.Object template,
Notifiable handler,
long leaseTime)
NotiFlynotifyWrite in interface NotiFlytemplate - - the template to match to triger this notifyhandler - - An object that implements the NotifyHandler interfaceleaseTime - - The time in milliseconds the template will live in the Spacepublic boolean notifyTake(java.lang.Object template,
Notifiable handler,
long leaseTime)
NotiFlynotifyTake in interface NotiFlytemplate - - the template to match to triger this notifyhandler - - An object that implements the NotifyHandler interfaceleaseTime - - The time in milliseconds the template will live in the Space