All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.smpp.debug.Event Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
/*
 * Copyright (c) 1996-2001
 * Logica Mobile Networks Limited
 * All rights reserved.
 *
 * This software is distributed under Logica Open Source License Version 1.0
 * ("Licence Agreement"). You shall use it and distribute only in accordance
 * with the terms of the License Agreement.
 *
 */
package org.smpp.debug;

/**
 * The interface Event is an interface to application specific
 * event trace facility. It is used in the library to notify about
 * like exception. Implementors are expected either to use one of the
 * predefined implementations DefaultEvent or 
 * FileEvent or that the will write an implementation
 * which will adapt this interface to their legacy tracing facility.
 *
 * @author Logica Mobile Networks SMPP Open Source Team
 * @version $Revision: 1.1 $
 */
public interface Event {
	/** Sends a message to the event object. */
	public void write(String msg);

	/** Sends an information about exception to the event object. */
	public void write(Exception e, String msg);

	/** Activates the event tracing. */
	public void activate();

	/** Deactivates the event tracing. */
	public void deactivate();
}
/*
 * $Log: not supported by cvs2svn $
 *
 * Old changelog:
 * 02-10-01 [email protected] comments added, indentation changed -> spaces
 */




© 2015 - 2024 Weber Informatics LLC | Privacy Policy