Class ElementEvent<T>
java.lang.Object
java.util.EventObject
org.apache.commons.jcs3.engine.control.event.ElementEvent<T>
- All Implemented Interfaces:
Serializable,IElementEvent<T>
Element events will trigger the creation of Element Event objects. This is a wrapper around the
cache element that indicates the event triggered.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionElementEvent(T source, ElementEventType elementEvent) Constructor for the ElementEvent object -
Method Summary
Modifier and TypeMethodDescriptionGets the elementEvent attribute of the ElementEvent objectMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
ElementEvent
Constructor for the ElementEvent object- Parameters:
source- The Cache ElementelementEvent- The event id defined in the enum class.
-
-
Method Details
-
getElementEvent
Gets the elementEvent attribute of the ElementEvent object- Specified by:
getElementEventin interfaceIElementEvent<T>- Returns:
- The elementEvent value. The List of values is defined in ElementEventType.
-
getSource
- Specified by:
getSourcein interfaceIElementEvent<T>- Overrides:
getSourcein classEventObject- Returns:
- the source of the event.
-