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 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 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 Transport
IOException
public 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 Task
Task.iterate()
public void setTransportListener(TransportListener commandListener)
setTransportListener
in interface Transport
public LinkedBlockingQueue<Object> getMessageQueue() throws TransportDisposedIOException
TransportDisposedIOException
protected TaskRunner getTaskRunner() throws TransportDisposedIOException
TransportDisposedIOException
public FutureResponse asyncRequest(Object command, ResponseCallback responseCallback) throws IOException
asyncRequest
in interface Transport
IOException
public Object request(Object command) throws IOException
request
in interface Transport
IOException
public Object request(Object command, int timeout) throws IOException
request
in interface Transport
IOException
public TransportListener getTransportListener()
getTransportListener
in interface Transport
public boolean isMarshal()
public void setMarshal(boolean marshal)
public String getRemoteAddress()
getRemoteAddress
in interface Transport
public 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 Transport
public boolean isDisposed()
isDisposed
in interface Transport
public boolean isConnected()
isConnected
in interface Transport
public void reconnect(URI uri) throws IOException
reconnect
in interface Transport
IOException
public boolean isReconnectSupported()
isReconnectSupported
in interface Transport
public boolean isUpdateURIsSupported()
isUpdateURIsSupported
in interface Transport
public void updateURIs(boolean reblance, URI[] uris) throws IOException
updateURIs
in interface Transport
IOException
public int getReceiveCounter()
getReceiveCounter
in interface Transport
Copyright © 2005–2019 FuseSource, Corp.. All rights reserved.