com.sas.util
Interface AlarmSource

All Known Subinterfaces:
AlarmInterface
All Known Implementing Classes:
Alarm

public interface AlarmSource

Define a type (interface) for an object which emits com.sas.util.AlarmEvent events. This interface provides methods to add and remove listeners for that event.

See Also:
AlarmEvent, AlarmListener, com.sas.tools.GenerateEventListenerList

Method Summary
 void addAlarmListener(AlarmListener listener)
          Add a listener for the com.sas.util.AlarmEvent event.
 void removeAlarmListener(AlarmListener listener)
          Remove a listener for the com.sas.util.AlarmEvent event.
 

Method Detail

addAlarmListener

void addAlarmListener(AlarmListener listener)
Add a listener for the com.sas.util.AlarmEvent event.

Parameters:
listener - an object which handles AlarmEvent events. The listener is not added a second time if it already exists in the list of listeners for this event.

removeAlarmListener

void removeAlarmListener(AlarmListener listener)
Remove a listener for the com.sas.util.AlarmEvent event. Nothing happens if the listener is not in the list of listeners for this event.

Parameters:
listener - an object which handles AlarmEvent events



Copyright © 2009 SAS Institute Inc. All Rights Reserved.