blob: 93034a010eeaf686d590cdda2cf441d062fb3b2e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 1997, 2008 by ProSyst Software GmbH
* http://www.prosyst.com
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* ProSyst Software GmbH - initial API and implementation
*******************************************************************************/
package org.eclipse.equinox.internal.util.event;
/**
* This interface marks any listener implementation as system listener. System
* listener are very important for the correct functionality of the system. When
* the execution of user implemented listener's methods is too slow this
* listener is presumed as "bad" listener and it is removed automatically by the
* framework unless it is implementing the SystemListener interface. Instead of
* removing it automatically as a bad listener, the system dispatchers will
* notify the listener by calling timeoutOccured().
*
* @author Stoyan Boshev
* @author Pavlin Dobrev
* @version 1.0
*
*/
public interface SystemListener {
/**
* Notifies the listener that a timeout has occured while processing one of
* its methods. The listeners logic may decide whether it has to be removed
* as listener or not
*
* @return true, if the listener has to be removed from the list of
* listeners
*/
public boolean timeoutOccured();
}