| Modifier and Type | Field and Description |
|---|---|
protected boolean |
async |
protected int |
asyncQueueDepth |
protected AtomicBoolean |
disposed |
protected long |
id |
protected URI |
location |
protected static org.slf4j.Logger |
LOG |
protected boolean |
marshal |
protected boolean |
network |
protected VMTransport |
peer |
protected AtomicBoolean |
started |
protected TransportListener |
transportListener |
| Constructor and Description |
|---|
VMTransport(URI location) |
protected static final org.slf4j.Logger LOG
protected VMTransport peer
protected TransportListener transportListener
protected boolean marshal
protected boolean network
protected boolean async
protected int asyncQueueDepth
protected final long id
protected final AtomicBoolean started
protected final AtomicBoolean disposed
public VMTransport(URI location)
public void setPeer(VMTransport peer)
public void oneway(Object command) throws IOException
oneway in interface TransportIOExceptionpublic void dispatch(VMTransport transport, BlockingQueue<Object> pending, Object command)
public void doDispatch(VMTransport transport, TransportListener transportListener, Object command)
protected void wakeup()
public boolean iterate()
iterate in interface TaskTask.iterate()public void setTransportListener(TransportListener commandListener)
setTransportListener in interface Transportpublic LinkedBlockingQueue<Object> getMessageQueue() throws TransportDisposedIOException
TransportDisposedIOExceptionprotected TaskRunner getTaskRunner() throws TransportDisposedIOException
TransportDisposedIOExceptionpublic FutureResponse asyncRequest(Object command, ResponseCallback responseCallback) throws IOException
asyncRequest in interface TransportIOExceptionpublic Object request(Object command) throws IOException
request in interface TransportIOExceptionpublic Object request(Object command, int timeout) throws IOException
request in interface TransportIOExceptionpublic TransportListener getTransportListener()
getTransportListener in interface Transportpublic boolean isMarshal()
public void setMarshal(boolean marshal)
public boolean isNetwork()
public void setNetwork(boolean network)
public String getRemoteAddress()
getRemoteAddress in interface Transportpublic boolean isAsync()
public void setAsync(boolean async)
async - the async to setpublic int getAsyncQueueDepth()
public void setAsyncQueueDepth(int asyncQueueDepth)
asyncQueueDepth - the asyncQueueDepth to setpublic boolean isFaultTolerant()
isFaultTolerant in interface Transportpublic boolean isDisposed()
isDisposed in interface Transportpublic boolean isConnected()
isConnected in interface Transportpublic void reconnect(URI uri) throws IOException
reconnect in interface TransportIOExceptionpublic boolean isReconnectSupported()
isReconnectSupported in interface Transportpublic boolean isUpdateURIsSupported()
isUpdateURIsSupported in interface Transportpublic void updateURIs(boolean reblance, URI[] uris) throws IOException
updateURIs in interface TransportIOExceptionpublic int getReceiveCounter()
getReceiveCounter in interface TransportCopyright © 2005–2018 FuseSource, Corp.. All rights reserved.