Class 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