|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.util.ManagedReference
gpars.serial.SerialHandle
class SerialHandle extends org.codehaus.groovy.util.ManagedReference
Weak reference to object, which was serialized to remote hosts. Also keep ids of all hosts, where the object was serialized.
While subscribed by remote nodes it keeps object alive by holding strong reference (anchor) to itNested Class Summary | |
---|---|
class |
SerialHandle.LocalSerialHandle
|
class |
SerialHandle.RemoteSerialHandle
|
Field Summary | |
---|---|
protected SerialContext |
context
local host |
protected UUID |
serialId
serial id of the object |
Constructor Summary | |
private SerialHandle(WithSerialId value, UUID id)
Construct handle for object with given id to it |
Method Summary | |
---|---|
static SerialHandle
|
create(WithSerialId obj, UUID id)
|
void
|
finalizeReference()
|
UUID
|
getSerialId()
Serial id of the object |
Object
|
getSubscribers()
Getter for subscribers |
void
|
subscribe(SerialContext context)
Subscribes host as interested in the object |
void
|
unsubscribe(SerialContext context)
|
Methods inherited from class org.codehaus.groovy.util.ManagedReference | |
---|---|
get, clear, finalizeReference, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
protected final SerialContext context
protected final UUID serialId
Constructor Detail |
---|
private SerialHandle(WithSerialId value, UUID id)
Method Detail |
---|
public static SerialHandle create(WithSerialId obj, UUID id)
@Override public void finalizeReference()
public UUID getSerialId()
public Object getSubscribers()
public void subscribe(SerialContext context)
public void unsubscribe(SerialContext context)
Groovy Documentation