org.simpleframework.transport.trace
Interface Trace


public interface Trace

The Trace interface represents an trace log for various connection events. A trace is not limited to low level I/O events it can also gather event data that relates to protocol specific events. Using a trace in this manner enables problems to be solved with connections as they arise.

When implementing a Trace there should be special attention paid to its affect on the performance of the server. The trace is used deep within the core and any delays experienced in the trace will be reflected in the performance of the server.

Author:
Niall Gallagher
See Also:
TraceAnalyzer

Method Summary
 void trace(Object event)
          This method is used to accept an event that occurred on the socket associated with this trace.
 void trace(Object event, Object value)
          This method is used to accept an event that occurred on the socket associated with this trace.
 

Method Detail

trace

void trace(Object event)
This method is used to accept an event that occurred on the socket associated with this trace. Typically the event is a symbolic description of the event such as an enum or a string.

Parameters:
event - this is the event that occurred on the socket

trace

void trace(Object event,
           Object value)
This method is used to accept an event that occurred on the socket associated with this trace. Typically the event is a symbolic description of the event such as an enum or a string.

Parameters:
event - this is the event that occurred on the socket
value - provides additional information such as an exception


Copyright © 2014. All Rights Reserved.