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
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
For example:
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 -
Method Summary
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 Details
-
ThreadNameFilter
-
-
Method Details
-
oneway
Description copied from interface:Transport
A one way asynchronous send- Specified by:
oneway
in interfaceTransport
- Overrides:
oneway
in classTransportFilter
- Throws:
IOException
-