public class HTTPEventCache extends java.lang.Object implements EventCache
Title: HTTP Fabric Client
Description: This class defines an API of EventCache.
Copyright: Copyright (c) 2013
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all events from the cache.
|
java.lang.String |
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 (i.e.
|
int |
getSize()
Returns the current size of the cache (i.e.
|
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.
|
public java.lang.String getEventFilter()
EventCache
getEventFilter
in interface EventCache
public int getMaxSize()
EventCache
getMaxSize
in interface EventCache
public CacheThresholdAction getThresholdAction()
EventCache
getThresholdAction
in interface EventCache
public void setMaxSize(int maxSize) throws HTTPFabricException
EventCache
This operation can throw the FabricExchangeException
only if the cache is located at the remote node.
setMaxSize
in interface EventCache
maxSize
- the max size to be set.HTTPFabricException
public int getSize() throws HTTPFabricException
EventCache
This operation can throw an exception only if the cache is located at the remote node.
getSize
in interface EventCache
HTTPFabricException
public java.util.List getEvents() throws HTTPFabricException
EventCache
This operation can throw an exception only if the cache is located at the remote node.
getEvents
in interface EventCache
HTTPFabricException
public void clear() throws HTTPFabricException
EventCache
This operation can throw an exception only if the cache is located at the remote node.
clear
in interface EventCache
HTTPFabricException
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.