public class VMTransport extends Object implements org.apache.activemq.transport.Transport, org.apache.activemq.thread.Task
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
async |
protected int |
asyncQueueDepth |
protected AtomicBoolean |
disposed |
protected long |
id |
protected URI |
location |
protected static Logger |
LOG |
protected boolean |
marshal |
protected VMTransport |
peer |
protected AtomicBoolean |
started |
protected org.apache.activemq.transport.TransportListener |
transportListener |
| Constructor and Description |
|---|
VMTransport(URI location) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.activemq.transport.FutureResponse |
asyncRequest(Object command,
org.apache.activemq.transport.ResponseCallback responseCallback) |
void |
dispatch(VMTransport transport,
BlockingQueue<Object> pending,
Object command) |
void |
doDispatch(VMTransport transport,
org.apache.activemq.transport.TransportListener transportListener,
Object command) |
int |
getAsyncQueueDepth() |
LinkedBlockingQueue<Object> |
getMessageQueue() |
X509Certificate[] |
getPeerCertificates() |
int |
getReceiveCounter() |
String |
getRemoteAddress() |
protected org.apache.activemq.thread.TaskRunner |
getTaskRunner() |
org.apache.activemq.transport.TransportListener |
getTransportListener() |
org.apache.activemq.wireformat.WireFormat |
getWireFormat() |
boolean |
isAsync() |
boolean |
isConnected() |
boolean |
isDisposed() |
boolean |
isFaultTolerant() |
boolean |
isMarshal() |
boolean |
isReconnectSupported() |
boolean |
isUpdateURIsSupported() |
boolean |
iterate() |
<T> T |
narrow(Class<T> target) |
void |
oneway(Object command) |
void |
reconnect(URI uri) |
Object |
request(Object command) |
Object |
request(Object command,
int timeout) |
void |
setAsync(boolean async) |
void |
setAsyncQueueDepth(int asyncQueueDepth) |
void |
setMarshal(boolean marshal) |
void |
setPeer(VMTransport peer) |
void |
setPeerCertificates(X509Certificate[] certificates) |
void |
setTransportListener(org.apache.activemq.transport.TransportListener commandListener) |
void |
start() |
void |
stop() |
String |
toString() |
void |
updateURIs(boolean reblance,
URI[] uris) |
protected void |
wakeup() |
protected VMTransport peer
protected org.apache.activemq.transport.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 org.apache.activemq.transport.TransportIOExceptionpublic void dispatch(VMTransport transport, BlockingQueue<Object> pending, Object command)
public void doDispatch(VMTransport transport, org.apache.activemq.transport.TransportListener transportListener, Object command)
public void start() throws Exception
start in interface org.apache.activemq.ServiceExceptionpublic void stop() throws Exception
stop in interface org.apache.activemq.ServiceExceptionprotected void wakeup()
public boolean iterate()
iterate in interface org.apache.activemq.thread.TaskTask.iterate()public void setTransportListener(org.apache.activemq.transport.TransportListener commandListener)
setTransportListener in interface org.apache.activemq.transport.Transportpublic LinkedBlockingQueue<Object> getMessageQueue() throws org.apache.activemq.transport.TransportDisposedIOException
org.apache.activemq.transport.TransportDisposedIOExceptionprotected org.apache.activemq.thread.TaskRunner getTaskRunner() throws org.apache.activemq.transport.TransportDisposedIOException
org.apache.activemq.transport.TransportDisposedIOExceptionpublic org.apache.activemq.transport.FutureResponse asyncRequest(Object command, org.apache.activemq.transport.ResponseCallback responseCallback) throws IOException
asyncRequest in interface org.apache.activemq.transport.TransportIOExceptionpublic Object request(Object command) throws IOException
request in interface org.apache.activemq.transport.TransportIOExceptionpublic Object request(Object command, int timeout) throws IOException
request in interface org.apache.activemq.transport.TransportIOExceptionpublic org.apache.activemq.transport.TransportListener getTransportListener()
getTransportListener in interface org.apache.activemq.transport.Transportpublic <T> T narrow(Class<T> target)
narrow in interface org.apache.activemq.transport.Transportpublic boolean isMarshal()
public void setMarshal(boolean marshal)
public String getRemoteAddress()
getRemoteAddress in interface org.apache.activemq.transport.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 org.apache.activemq.transport.Transportpublic boolean isDisposed()
isDisposed in interface org.apache.activemq.transport.Transportpublic boolean isConnected()
isConnected in interface org.apache.activemq.transport.Transportpublic void reconnect(URI uri) throws IOException
reconnect in interface org.apache.activemq.transport.TransportIOExceptionpublic boolean isReconnectSupported()
isReconnectSupported in interface org.apache.activemq.transport.Transportpublic boolean isUpdateURIsSupported()
isUpdateURIsSupported in interface org.apache.activemq.transport.Transportpublic void updateURIs(boolean reblance, URI[] uris) throws IOException
updateURIs in interface org.apache.activemq.transport.TransportIOExceptionpublic int getReceiveCounter()
getReceiveCounter in interface org.apache.activemq.transport.Transportpublic X509Certificate[] getPeerCertificates()
getPeerCertificates in interface org.apache.activemq.transport.Transportpublic void setPeerCertificates(X509Certificate[] certificates)
setPeerCertificates in interface org.apache.activemq.transport.Transportpublic org.apache.activemq.wireformat.WireFormat getWireFormat()
getWireFormat in interface org.apache.activemq.transport.TransportCopyright © 2005–2020 The Apache Software Foundation. All rights reserved.