org.asteriskjava.util.internal.Trace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of asterisk-java Show documentation
Show all versions of asterisk-java Show documentation
The free Java library for Asterisk PBX integration.
The newest version!
package org.asteriskjava.util.internal;
/**
* Interface for tracing network traffic.
*/
public interface Trace {
/**
* Name of the system property to enable tracing.
* To enable tracing add -Dorg.asteriskjava.trace=true
to the vm parameters when running Asterisk-Java.
*/
String TRACE_PROPERTY = "org.asteriskjava.trace";
/**
* Writes data that has been received from the network to the trace.
*
* @param s the String that has been received.
*/
void received(String s);
/**
* Writes data that has been sent to the network to the trace.
*
* @param s the String that has been sent.
*/
void sent(String s);
/**
* Closes allocated resources by trace implementation.
*/
void close();
}