Package org.apache.activemq.transport
Class ThreadNameFilter
- java.lang.Object
-
- org.apache.activemq.transport.TransportFilter
-
- 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
Constructors Constructor Description ThreadNameFilter(Transport next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
oneway(Object command)
A one way asynchronous send-
Methods inherited from class org.apache.activemq.transport.TransportFilter
asyncRequest, getNext, getPeerCertificates, getReceiveCounter, getRemoteAddress, getTransportListener, getWireFormat, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onCommand, onException, reconnect, request, request, setPeerCertificates, setTransportListener, start, stop, toString, transportInterupted, transportResumed, updateURIs
-
-
-
-
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 interfaceTransport
- Overrides:
oneway
in classTransportFilter
- Throws:
IOException
-
-