org.apache.activemq.transport
Class TransportThreadSupport

java.lang.Object
  extended by org.apache.activemq.util.ServiceSupport
      extended by org.apache.activemq.transport.TransportSupport
          extended by org.apache.activemq.transport.TransportThreadSupport
All Implemented Interfaces:
Runnable, Service, Transport
Direct Known Subclasses:
HttpTransportSupport, TcpTransport, UdpTransport

public abstract class TransportThreadSupport
extends TransportSupport
implements Runnable

A useful base class for a transport implementation which has a background reading thread.


Constructor Summary
TransportThreadSupport()
           
 
Method Summary
protected  void doStart()
           
 long getStackSize()
           
 boolean isDaemon()
           
 void setDaemon(boolean daemon)
           
 void setStackSize(long stackSize)
           
 
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, doStop, isStarted, isStopped, isStopping, postStop, preStart, 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 java.lang.Runnable
run
 
Methods inherited from interface org.apache.activemq.transport.Transport
getReceiveCounter, getRemoteAddress, oneway
 
Methods inherited from interface org.apache.activemq.Service
start, stop
 

Constructor Detail

TransportThreadSupport

public TransportThreadSupport()
Method Detail

isDaemon

public boolean isDaemon()

setDaemon

public void setDaemon(boolean daemon)

doStart

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

getStackSize

public long getStackSize()
Returns:
the stackSize

setStackSize

public void setStackSize(long stackSize)
Parameters:
stackSize - the stackSize to set


Copyright © 2005–2013 The Apache Software Foundation. All rights reserved.