public abstract class Connector extends java.lang.Object implements IConnector, java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Connector.DummyConnector |
static class |
Connector.InConnector |
static class |
Connector.OutConnector |
| Constructor and Description |
|---|
Connector() |
Connector(IPiece parent,
java.lang.Class<?> c) |
| Modifier and Type | Method and Description |
|---|---|
<T> boolean |
__async_push(Packet<T> packet,
T obj) |
<T> boolean |
async_push(Packet<T> packet) |
void |
detach() |
<T> T |
getCache() |
IPiece |
getCacheSource() |
IPiece |
getParent() |
Path |
getParentPath() |
Path |
getParentPathNoWait() |
boolean |
isConnected() |
boolean |
isNotEmpty() |
void |
reset() |
boolean |
send_reset() |
Connector |
setListener(Chain.IPathListener _listen) |
IConnector |
setParentPath(Path _path) |
Connector |
setPartner(Connector i) |
void |
setPushWithNoPath(Packet obj) |
Connector |
setResetHandler(Chain.IPathListener _reset) |
Connector |
setUsed(boolean b) |
<T> Packet<T> |
sync_peek() |
<T> Packet<T> |
sync_pop() |
<T> boolean |
sync_push(Packet<T> packet) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitend, getPackpublic Connector()
public Connector(IPiece parent, java.lang.Class<?> c)
public IConnector setParentPath(Path _path)
setParentPath in interface IConnectorpublic Path getParentPath() throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic Path getParentPathNoWait() throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void setPushWithNoPath(Packet obj)
public IPiece getParent()
public Connector setUsed(boolean b)
public Connector setListener(Chain.IPathListener _listen)
public Connector setResetHandler(Chain.IPathListener _reset)
public boolean isConnected()
public boolean isNotEmpty()
public <T> T getCache()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic IPiece getCacheSource() throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic void detach()
throws Chain.ChainException
Chain.ChainExceptionpublic <T> Packet<T> sync_pop() throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic <T> Packet<T> sync_peek() throws java.lang.InterruptedException, IAxon.AxonException
java.lang.InterruptedExceptionIAxon.AxonExceptionpublic <T> boolean sync_push(Packet<T> packet) throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic <T> boolean async_push(Packet<T> packet) throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic <T> boolean __async_push(Packet<T> packet, T obj) throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic boolean send_reset()
public void reset()