org.apache.jcs.engine.control.event.behavior
Interface IElementEventHandler

All Superinterfaces:
IElementEventConstants

public interface IElementEventHandler
extends IElementEventConstants

This interface defines the behavior for event handler. Event handlers are transient. They are not replicated and are not written to disk.

If you want an event handler by default for all elements in a region, then you can add it to the default element attributes. This way it will get create whenever an item gets put into the cache.


Field Summary
 
Fields inherited from interface org.apache.jcs.engine.control.event.behavior.IElementEventConstants
ELEMENT_EVENT_EXCEEDED_IDLETIME_BACKGROUND, ELEMENT_EVENT_EXCEEDED_IDLETIME_ONREQUEST, ELEMENT_EVENT_EXCEEDED_MAXLIFE_BACKGROUND, ELEMENT_EVENT_EXCEEDED_MAXLIFE_ONREQUEST, ELEMENT_EVENT_SPOOLED_DISK_AVAILABLE, ELEMENT_EVENT_SPOOLED_DISK_NOT_AVAILABLE, ELEMENT_EVENT_SPOOLED_NOT_ALLOWED
 
Method Summary
 void handleElementEvent(IElementEvent event)
          Handle events for this element.
 

Method Detail

handleElementEvent

void handleElementEvent(IElementEvent event)
Handle events for this element. The events are typed.

Parameters:
event - The event created by the cache.


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.