|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.transport.vm.VMTransport
public class VMTransport
A Transport implementation that uses direct method invocations.
Field Summary | |
---|---|
protected boolean |
async
|
protected int |
asyncQueueDepth
|
protected boolean |
disposed
|
protected long |
id
|
protected java.net.URI |
location
|
protected boolean |
marshal
|
protected edu.emory.mathcs.backport.java.util.concurrent.LinkedBlockingQueue |
messageQueue
|
protected boolean |
network
|
protected VMTransport |
peer
|
protected java.util.List |
prePeerSetQueue
|
protected boolean |
started
|
protected TransportListener |
transportListener
|
Constructor Summary | |
---|---|
VMTransport(java.net.URI location)
|
Method Summary | |
---|---|
protected void |
asyncOneWay(java.lang.Object command)
|
FutureResponse |
asyncRequest(java.lang.Object command,
ResponseCallback responseCallback)
An asynchronous request response where the Receipt will be returned in the future. |
int |
getAsyncQueueDepth()
|
protected edu.emory.mathcs.backport.java.util.concurrent.LinkedBlockingQueue |
getMessageQueue()
|
VMTransport |
getPeer()
|
java.lang.String |
getRemoteAddress()
|
TransportListener |
getTransportListener()
Returns the current transport listener |
boolean |
isAsync()
|
boolean |
isMarshal()
|
boolean |
isNetwork()
|
boolean |
iterate()
|
java.lang.Object |
narrow(java.lang.Class target)
|
void |
oneway(java.lang.Object command)
A one way asynchronous send |
java.lang.Object |
request(java.lang.Object command)
A synchronous request response |
java.lang.Object |
request(java.lang.Object command,
int timeout)
A synchronous request response |
void |
setAsync(boolean async)
|
void |
setAsyncQueueDepth(int asyncQueueDepth)
|
void |
setMarshal(boolean marshal)
|
void |
setNetwork(boolean network)
|
void |
setPeer(VMTransport peer)
|
void |
setTransportListener(TransportListener commandListener)
Registers an inbound command listener |
void |
start()
|
void |
stop()
|
protected void |
syncOneWay(java.lang.Object command)
|
java.lang.String |
toString()
|
protected void |
wakeup()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected VMTransport peer
protected TransportListener transportListener
protected boolean disposed
protected boolean marshal
protected boolean network
protected boolean async
protected boolean started
protected int asyncQueueDepth
protected java.util.List prePeerSetQueue
protected edu.emory.mathcs.backport.java.util.concurrent.LinkedBlockingQueue messageQueue
protected final java.net.URI location
protected final long id
Constructor Detail |
---|
public VMTransport(java.net.URI location)
Method Detail |
---|
public VMTransport getPeer()
public void setPeer(VMTransport peer)
public void oneway(java.lang.Object command) throws java.io.IOException
Transport
oneway
in interface Transport
java.io.IOException
protected void syncOneWay(java.lang.Object command)
protected void asyncOneWay(java.lang.Object command) throws java.io.IOException
java.io.IOException
public FutureResponse asyncRequest(java.lang.Object command, ResponseCallback responseCallback) throws java.io.IOException
Transport
asyncRequest
in interface Transport
responseCallback
- TODO
java.io.IOException
public java.lang.Object request(java.lang.Object command) throws java.io.IOException
Transport
request
in interface Transport
java.io.IOException
public java.lang.Object request(java.lang.Object command, int timeout) throws java.io.IOException
Transport
request
in interface Transport
java.io.IOException
public TransportListener getTransportListener()
Transport
getTransportListener
in interface Transport
public void setTransportListener(TransportListener commandListener)
Transport
setTransportListener
in interface Transport
public void start() throws java.lang.Exception
start
in interface Service
java.lang.Exception
public void stop() throws java.lang.Exception
stop
in interface Service
java.lang.Exception
public java.lang.Object narrow(java.lang.Class target)
narrow
in interface Transport
public boolean isMarshal()
public void setMarshal(boolean marshal)
public boolean isNetwork()
public void setNetwork(boolean network)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRemoteAddress()
getRemoteAddress
in interface Transport
public boolean iterate()
iterate
in interface Task
Task.iterate()
public boolean isAsync()
public void setAsync(boolean async)
async
- the async to setpublic int getAsyncQueueDepth()
public void setAsyncQueueDepth(int asyncQueueDepth)
asyncQueueDepth
- the asyncQueueDepth to setprotected void wakeup()
protected edu.emory.mathcs.backport.java.util.concurrent.LinkedBlockingQueue getMessageQueue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |