org.apache.activemq.transport
Class ThreadNameFilter

java.lang.Object
  extended by org.apache.activemq.transport.TransportFilter
      extended by org.apache.activemq.transport.ThreadNameFilter
All Implemented Interfaces:
Service, Transport, TransportListener

public class ThreadNameFilter
extends TransportFilter

The thread name filter, modifies the name of the thread during the invocation to a transport. It appends the remote address, so that a call stuck in a transport method such as socketWrite0 will have the destination information in the thread name. This is extremely useful for thread dumps when debugging. To enable this transport, in the transport URI, simpley add
transport.threadName.
For example:


 <transportConnector 
     name="tcp1" 
     uri="tcp://127.0.0.1:61616?transport.soTimeout=10000&transport.threadName"
 />
 

Author:
Filip Hanik

Field Summary
 
Fields inherited from class org.apache.activemq.transport.TransportFilter
next, transportListener
 
Constructor Summary
ThreadNameFilter(Transport next)
           
 
Method Summary
 void oneway(Object command)
          A one way asynchronous send
 
Methods inherited from class org.apache.activemq.transport.TransportFilter
asyncRequest, getNext, getReceiveCounter, getRemoteAddress, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onCommand, onException, reconnect, request, request, setTransportListener, start, stop, toString, transportInterupted, transportResumed, updateURIs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThreadNameFilter

public ThreadNameFilter(Transport next)
Method Detail

oneway

public void oneway(Object command)
            throws IOException
Description copied from interface: Transport
A one way asynchronous send

Specified by:
oneway in interface Transport
Overrides:
oneway in class TransportFilter
Throws:
IOException


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.