org.tanukisoftware.wrapper.event
Class WrapperCoreEvent
java.lang.Object
java.util.EventObject
org.tanukisoftware.wrapper.event.WrapperEvent
org.tanukisoftware.wrapper.event.WrapperCoreEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- WrapperPingEvent, WrapperTickEvent
public abstract class WrapperCoreEvent
- extends WrapperEvent
WrapperCoreEvents are used to notify the listener of the internal
workings of the Wrapper.
WARNING - Great care should be taken when receiving events of this type.
They are sent from within the Wrapper's internal timing thread. If the
listner takes too much time working with the event, Wrapper performance
could be adversely affected. If unsure, it is recommended that events
of this type not be included.
- Author:
- Leif Mortenson
- See Also:
- Serialized Form
Constructor Summary |
protected |
WrapperCoreEvent()
Creates a new WrapperCoreEvent. |
Method Summary |
long |
getFlags()
Returns a set of event flags for which the event should be fired. |
WrapperCoreEvent
protected WrapperCoreEvent()
- Creates a new WrapperCoreEvent.
getFlags
public long getFlags()
- Returns a set of event flags for which the event should be fired.
This value is compared with the mask supplied when when a
WrapperEventListener is registered to decide which listeners should
receive the event.
If a subclassed, the return value of the super class should usually
be ORed with any additional flags.
- Overrides:
getFlags
in class WrapperEvent
- Returns:
- a set of event flags.
Copyright 1999, 2006 Tanuki Software Inc., All Rights Reserved.