|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.util.ManagedReference
gpars.serial.SerialHandle
public 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 itField Summary | |
---|---|
protected SerialContext |
context
local host |
protected UUID |
serialId
serial id of the object |
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 | |
---|---|
org.codehaus.groovy.util.ManagedReference#get(), org.codehaus.groovy.util.ManagedReference#clear(), org.codehaus.groovy.util.ManagedReference#finalizeReference(), org.codehaus.groovy.util.ManagedReference#wait(long), org.codehaus.groovy.util.ManagedReference#wait(long, int), org.codehaus.groovy.util.ManagedReference#wait(), org.codehaus.groovy.util.ManagedReference#equals(java.lang.Object), org.codehaus.groovy.util.ManagedReference#toString(), org.codehaus.groovy.util.ManagedReference#hashCode(), org.codehaus.groovy.util.ManagedReference#getClass(), org.codehaus.groovy.util.ManagedReference#notify(), org.codehaus.groovy.util.ManagedReference#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
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