Search in sources :

Example 1 with TransportLogger

use of org.apache.activemq.transport.TransportLogger in project activemq-artemis by apache.

the class TcpTransportServerTest method hasTransportLogger.

private boolean hasTransportLogger(Transport transport) {
    boolean end = false;
    Transport current = transport;
    while (!end) {
        if (current instanceof TransportFilter) {
            TransportFilter filter = (TransportFilter) current;
            if (filter instanceof TransportLogger) {
                return true;
            }
            current = filter.getNext();
        } else {
            end = true;
        }
    }
    return false;
}
Also used : TransportLogger(org.apache.activemq.transport.TransportLogger) Transport(org.apache.activemq.transport.Transport) TransportFilter(org.apache.activemq.transport.TransportFilter)

Aggregations

Transport (org.apache.activemq.transport.Transport)1 TransportFilter (org.apache.activemq.transport.TransportFilter)1 TransportLogger (org.apache.activemq.transport.TransportLogger)1