org.apache.activemq.transport.http
Class BlockingQueueTransport

java.lang.Object
  extended by org.apache.activemq.util.ServiceSupport
      extended by org.apache.activemq.transport.TransportSupport
          extended by org.apache.activemq.transport.http.BlockingQueueTransport
All Implemented Interfaces:
Service, Transport

public class BlockingQueueTransport
extends TransportSupport

A server side HTTP based TransportChannel which processes incoming packets and adds outgoing packets onto a Queue so that they can be dispatched by the HTTP GET requests from the client.


Field Summary
static long MAX_TIMEOUT
           
 
Constructor Summary
BlockingQueueTransport(java.util.concurrent.BlockingQueue<java.lang.Object> channel)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop(ServiceStopper stopper)
           
 java.util.concurrent.BlockingQueue<java.lang.Object> getQueue()
           
 int getReceiveCounter()
           
 java.lang.String getRemoteAddress()
           
 void oneway(java.lang.Object command)
           
 
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, removeServiceListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.activemq.Service
start, stop
 

Field Detail

MAX_TIMEOUT

public static final long MAX_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

BlockingQueueTransport

public BlockingQueueTransport(java.util.concurrent.BlockingQueue<java.lang.Object> channel)
Method Detail

getQueue

public java.util.concurrent.BlockingQueue<java.lang.Object> getQueue()

oneway

public void oneway(java.lang.Object command)
            throws java.io.IOException
Throws:
java.io.IOException

getRemoteAddress

public java.lang.String getRemoteAddress()

doStart

protected void doStart()
                throws java.lang.Exception
Specified by:
doStart in class ServiceSupport
Throws:
java.lang.Exception

doStop

protected void doStop(ServiceStopper stopper)
               throws java.lang.Exception
Specified by:
doStop in class ServiceSupport
Throws:
java.lang.Exception

getReceiveCounter

public int getReceiveCounter()


Copyright © 2005-2012 FuseSource, Corp.. All Rights Reserved.