public abstract class EventCache extends CloneableDataObject
Title: Framework Support Library
Description: Defines a cache for durable events of EventDispatcher
.
LRE_DISCARD
or MRE_DISCARD
.
Copyright: Copyright (c) 2009
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_SIZE |
DEFAULT_SERIAL_VERSION_ID
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all events from the cache.
|
Filter |
getEventFilter()
Returns the event filter associated with the cache.
|
java.util.List |
getEvents()
Returns a list of all events contained in the cache.
|
int |
getMaxSize()
Returns the max size of the cache.
|
int |
getSize()
Returns the current size of the cache (actual number of events in the cache).
|
abstract CacheThresholdAction |
getThresholdAction()
Returns a type of the action that is performed if the cache is overflowed.
|
void |
setMaxSize(int maxSize)
Sets the max size of the cache.
|
clone, getSerialVersionUID
public static final int DEFAULT_MAX_SIZE
public Filter getEventFilter()
public int getMaxSize()
public void setMaxSize(int maxSize) throws EventDispatcherException
maxSize
- the max size to be set.EventDispatcherException
- if the maxSize
is not positive.public abstract CacheThresholdAction getThresholdAction()
public int getSize()
public java.util.List getEvents()
public void clear()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.