|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventCache
Caches all events that do not have a listener associated with them. The events will be stored until the cache limit is reached. After reaching the cache size, events will be discarded using first in, first out semantics.
Method Summary | |
---|---|
void |
addEvent(Event e)
Add the Event to the cache. |
java.util.List<Event> |
flushEvents()
Flushes the cache of all the Event s. |
java.util.List<Event> |
flushEvents(javax.xml.namespace.QName eventType)
Flushes the Event from the cache matching the event type. |
java.util.List<Event> |
flushEvents(java.lang.String namespaceURI)
Flushes the Event s from the cache matching the event type namespace. |
java.util.List<Event> |
getEvents()
Returns all the events. |
java.util.List<Event> |
getEvents(javax.xml.namespace.QName eventType)
Returns all the events matching the event type. |
java.util.List<Event> |
getEvents(java.lang.String namespaceURI)
Returns all the events matching the event type namespace. |
void |
setCacheSize(int size)
Sets the cache size. |
Method Detail |
---|
void addEvent(Event e)
Event
to the cache.
If the maximum size of the cache is reached, the first Event
added will be removed from the cache(FIFO)
e
- The Event
to be added to the cache.java.util.List<Event> flushEvents()
Event
s.
Event
s.java.util.List<Event> flushEvents(javax.xml.namespace.QName eventType)
Event
from the cache matching the event type.
eventType
- the Event
type.
Event
s matching the event type.java.util.List<Event> flushEvents(java.lang.String namespaceURI)
Event
s from the cache matching the event type namespace.
namespaceURI
- the Event
type namespace.
Event
s matching the event type namespace.java.util.List<Event> getEvents()
java.util.List<Event> getEvents(javax.xml.namespace.QName eventType)
eventType
- the Event
type.
Event
s matching the event type.java.util.List<Event> getEvents(java.lang.String namespaceURI)
namespaceURI
- the Event
type namespace.
Event
s matching the event type namespace.void setCacheSize(int size)
size
- Indicates the new size of the cache.
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |