Class BlockingQueueTransport
- java.lang.Object
-
- org.apache.activemq.util.ServiceSupport
-
- org.apache.activemq.transport.TransportSupport
-
- org.apache.activemq.transport.http.BlockingQueueTransport
-
- All Implemented Interfaces:
org.apache.activemq.Service,org.apache.activemq.transport.Transport
public class BlockingQueueTransport extends org.apache.activemq.transport.TransportSupportA server side HTTP based TransportChannel which processes incoming packets and adds outgoing packets onto aQueueso that they can be dispatched by the HTTP GET requests from the client.
-
-
Field Summary
Fields Modifier and Type Field Description static longMAX_TIMEOUT
-
Constructor Summary
Constructors Constructor Description BlockingQueueTransport(BlockingQueue<Object> channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoStart()protected voiddoStop(ServiceStopper stopper)X509Certificate[]getPeerCertificates()BlockingQueue<Object>getQueue()intgetReceiveCounter()StringgetRemoteAddress()org.apache.activemq.wireformat.WireFormatgetWireFormat()voidoneway(Object command)voidsetPeerCertificates(X509Certificate[] certificates)-
Methods inherited from class org.apache.activemq.transport.TransportSupport
asyncRequest, checkStarted, doConsume, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onException, reconnect, request, request, setTransportListener, updateURIs
-
Methods inherited from class org.apache.activemq.util.ServiceSupport
addServiceListener, dispose, isStarted, isStopped, isStopping, postStop, preStart, removeServiceListener, start, stop
-
-
-
-
Field Detail
-
MAX_TIMEOUT
public static final long MAX_TIMEOUT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BlockingQueueTransport
public BlockingQueueTransport(BlockingQueue<Object> channel)
-
-
Method Detail
-
getQueue
public BlockingQueue<Object> getQueue()
-
oneway
public void oneway(Object command) throws IOException
- Throws:
IOException
-
getRemoteAddress
public String getRemoteAddress()
-
doStart
protected void doStart() throws Exception- Specified by:
doStartin classServiceSupport- Throws:
Exception
-
doStop
protected void doStop(ServiceStopper stopper) throws Exception
- Specified by:
doStopin classServiceSupport- Throws:
Exception
-
getReceiveCounter
public int getReceiveCounter()
-
getPeerCertificates
public X509Certificate[] getPeerCertificates()
-
setPeerCertificates
public void setPeerCertificates(X509Certificate[] certificates)
-
getWireFormat
public org.apache.activemq.wireformat.WireFormat getWireFormat()
-
-