|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.serial.SerialContext
public abstract class SerialContext
Field Summary | |
---|---|
protected java.util.UUID |
hostId
|
protected SerialHandles |
localHost
|
private static java.lang.ThreadLocal |
threadContext
|
Constructor Summary | |
SerialContext(SerialHandles localHost, java.util.UUID hostId)
|
Method Summary | |
---|---|
void
|
add(SerialHandle serialHandle)
|
void
|
enter()
Leave this context |
void
|
finalizeHandle(SerialHandle handle)
|
static SerialContext
|
get()
|
SerialHandle
|
get(java.util.UUID id)
|
java.util.UUID
|
getHostId()
|
java.util.UUID
|
getLocalHostId()
|
SerialContext
|
getSerialHost(java.util.UUID hostId, java.lang.Object attachment)
|
void
|
leave()
|
void
|
remove(SerialHandle serialHandle)
|
void
|
write(SerialMsg msg)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
protected final java.util.UUID hostId
protected final SerialHandles localHost
private static final java.lang.ThreadLocal threadContext
Constructor Detail |
---|
public SerialContext(SerialHandles localHost, java.util.UUID hostId)
Method Detail |
---|
public void add(SerialHandle serialHandle)
public final void enter()
public void finalizeHandle(SerialHandle handle)
public static SerialContext get()
public SerialHandle get(java.util.UUID id)
public java.util.UUID getHostId()
public java.util.UUID getLocalHostId()
public SerialContext getSerialHost(java.util.UUID hostId, java.lang.Object attachment)
public final void leave()
public void remove(SerialHandle serialHandle)
public void write(SerialMsg msg)
Copyright © 2008–2013 Václav Pech. All Rights Reserved.