public class LogTrafficListener extends Object implements TrafficListener
TrafficListener that logs Command at TRACE level.
This implementation checks whether the TRACE log level
is enabled before logging anything. This TrafficListener
should only be activated for debugging purposes, not in a production
environment.
TrafficListener,
ConnectionFactory.setTrafficListener(TrafficListener)NO_OP| Constructor and Description |
|---|
LogTrafficListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
read(Command inboundCommand)
Notified for each inbound
Command. |
protected boolean |
shouldLog(Command command) |
void |
write(Command outboundCommand)
Notified for each outbound
Command. |
public void write(Command outboundCommand)
TrafficListenerCommand.write in interface TrafficListenerpublic void read(Command inboundCommand)
TrafficListenerCommand.read in interface TrafficListenerprotected boolean shouldLog(Command command)
Copyright © 2021 VMware, Inc. or its affiliates.. All rights reserved.