public interface EventQueue extends BlockingQueue
Title: Dataspace Framework
Description: Event Queue collection interface.
BlockingQueue
javadoc.
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
long |
count(java.lang.String selector)
Counts event which match specified selector.
|
int |
drainTo(java.util.Collection c,
int maxElements,
java.lang.String selector)
The same as
drainTo(Collection, String) but drains maximum maxElements . |
int |
drainTo(java.util.Collection c,
java.lang.String selector)
The same as
BlockingQueue.drainTo(Collection)
but drains only elements that match to selector clause. |
ImmutableEventDatagram |
read(java.lang.String selector)
Retrieves but doesn't not remove an event from the head of
the queue that matches to selector clause.
|
java.util.List |
readAll()
Returns all event from the queue.
|
ImmutableEventDatagram |
readLast(java.lang.String selector)
Retrieves but doesn't not remove last added event from the
queue that matches to selector clause.
|
void |
start()
Starts underlying consumer of the queue.
|
void |
stop()
Stops underlying consumer of the queue.
|
ImmutableEventDatagram |
take(java.lang.String selector)
Retrieves next event from the head of the queue that matches to selector clause.
|
ImmutableEventDatagram |
takeLast(java.lang.String selector)
Retrieves last added event from the queue that matches to selector clause.
|
ImmutableEventDatagram |
waitToRead(java.lang.String selector)
Retrieves but do not remove an event from the head of
the queue that matches to selector clause.
|
ImmutableEventDatagram |
waitToRead(java.lang.String selector,
long timeout,
java.util.concurrent.TimeUnit unit)
The same as
read(String) but waiting up to the
specified timeout until an event becomes available for retrieve. |
ImmutableEventDatagram |
waitToReadLast(java.lang.String selector)
Retrieves but do not remove last added event from
the queue that matches to selector clause.
|
ImmutableEventDatagram |
waitToReadLast(java.lang.String selector,
long timeout,
java.util.concurrent.TimeUnit unit)
The same as
readLast(String) but waiting up to the
specified timeout until an event becomes available for retrieve. |
ImmutableEventDatagram |
waitToTake(java.lang.String selector)
The same as
take(String) but blocks until an event is
available for retrieve. |
ImmutableEventDatagram |
waitToTake(java.lang.String selector,
long timeout,
java.util.concurrent.TimeUnit unit)
The same as
take(String) but waiting up to the
specified timeout until an event becomes available for retrieve. |
ImmutableEventDatagram |
waitToTakeLast(java.lang.String selector)
The same as
takeLast(String) but blocks until an event is
available for retrieve. |
ImmutableEventDatagram |
waitToTakeLast(java.lang.String selector,
long timeout,
java.util.concurrent.TimeUnit unit)
The same as
takeLast(String) but waiting up to the
specified timeout until an event becomes available for retrieve. |
addAll, containsAll, drainTo, drainTo, pollLast, removeAll, retainAll, takeLast
addRow, addRows, drainRowsTo, drainRowsTo, drainToMap, drainToQueue, drainToRowSet, drainToTable, elementLast, fromMap, fromQueue, fromRowSet, fromTable, peekLast, pollLast, removeLast, toMap, toMapCollection, toQueue, toQueueCollection, toRowSet, toTableCollection
getCollectionName, getCollectionType, getMemoryModel, listTriggers
add, contains, offer, offer, poll, put, remainingCapacity, remove, take
ImmutableEventDatagram take(java.lang.String selector)
ImmutableEventDatagram takeLast(java.lang.String selector)
ImmutableEventDatagram waitToTake(java.lang.String selector)
take(String)
but blocks until an event is
available for retrieve.ImmutableEventDatagram waitToTakeLast(java.lang.String selector)
takeLast(String)
but blocks until an event is
available for retrieve.ImmutableEventDatagram waitToTake(java.lang.String selector, long timeout, java.util.concurrent.TimeUnit unit)
take(String)
but waiting up to the
specified timeout until an event becomes available for retrieve.
If timeout is zero blocks until event is available.ImmutableEventDatagram waitToTakeLast(java.lang.String selector, long timeout, java.util.concurrent.TimeUnit unit)
takeLast(String)
but waiting up to the
specified timeout until an event becomes available for retrieve.
If timeout is zero blocks until event is available.ImmutableEventDatagram read(java.lang.String selector)
ImmutableEventDatagram readLast(java.lang.String selector)
ImmutableEventDatagram waitToRead(java.lang.String selector)
ImmutableEventDatagram waitToReadLast(java.lang.String selector)
ImmutableEventDatagram waitToRead(java.lang.String selector, long timeout, java.util.concurrent.TimeUnit unit)
read(String)
but waiting up to the
specified timeout until an event becomes available for retrieve.
If timeout is zero blocks until event is available.ImmutableEventDatagram waitToReadLast(java.lang.String selector, long timeout, java.util.concurrent.TimeUnit unit)
readLast(String)
but waiting up to the
specified timeout until an event becomes available for retrieve.
If timeout is zero blocks until event is available.java.util.List readAll()
long count(java.lang.String selector)
void start()
void stop()
int drainTo(java.util.Collection c, java.lang.String selector)
BlockingQueue.drainTo(Collection)
but drains only elements that match to selector clause.int drainTo(java.util.Collection c, int maxElements, java.lang.String selector)
drainTo(Collection, String)
but drains maximum maxElements
.
See drainTo(Collection,String)
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.