public interface EventTable extends Table
Title: Dataspace Framework
Description: Event Table collection interface.
Table
javadoc.
Copyright: Copyright (c) 2011
Company: StreamScape Technologies
Modifier and Type | Method and Description |
---|---|
void |
delete(ImmutableEventDatagram event)
Deletes event from the table with the same primary keys or
with the same properties values if primary keys not set.
|
void |
insert(ImmutableEventDatagram event)
Inserts new event into the table.
|
ImmutableEventDatagram |
read(java.lang.String selector)
Retrieves first added event from the table that matches to given selector.
|
ImmutableEventDatagram |
readLast(java.lang.String selector)
Retrieves last added event from the table that matches to given selector.
|
void |
start()
Starts underlying consumer of the queue.
|
void |
stop()
Stops underlying consumer of the queue.
|
ImmutableEventDatagram |
take(java.lang.String selector)
Retrieves first added event from the table that matches to given selector.
|
ImmutableEventDatagram |
takeLast(java.lang.String selector)
Retrieves last added event from the table that matches to given selector.
|
void |
upsert(ImmutableEventDatagram event)
Works the same way as
insert(ImmutableEventDatagram) but
if event with the same primary keys exists in the table,
existing event will be updated and new event won't be inserted
into the table. |
ImmutableEventDatagram |
waitToRead(java.lang.String selector)
The same as
read(String) but blocks until event is available. |
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)
The same as
readLast(String) but blocks until event is available. |
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 event is available. |
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 event is available. |
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. |
clear, clear, containsPrimarykey, delete, delete, deleteAll, drainFromQueue, fromMap, fromQueue, fromRowSet, getRow, hasForeignKey, hasPrimaryKey, insert, insert, insert, insert, insertAll, insertAll, isEmpty, primaryKeySet, rowSet, select, size, toMap, toMapCollection, toQueue, toQueueCollection, toRowSet, toTableCollection, update, update, update, upsert, upsert
getCollectionName, getCollectionType, getMemoryModel, listTriggers
void insert(ImmutableEventDatagram event)
event
- - Event which should be inserted.void upsert(ImmutableEventDatagram event)
insert(ImmutableEventDatagram)
but
if event with the same primary keys exists in the table,
existing event will be updated and new event won't be inserted
into the table.event
- - Event which should be updated or inserted.void delete(ImmutableEventDatagram event)
event
- - Event which should be removed.void start()
void stop()
ImmutableEventDatagram take(java.lang.String selector)
selector
- on table columnsImmutableEventDatagram takeLast(java.lang.String selector)
selector
- on table columnsImmutableEventDatagram waitToTake(java.lang.String selector)
take(String)
but blocks until event is available.selector
- ImmutableEventDatagram waitToTakeLast(java.lang.String selector)
takeLast(String)
but blocks until event is available.selector
- 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.selector
- timeout
- unit
- 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.selector
- timeout
- unit
- ImmutableEventDatagram read(java.lang.String selector)
selector
- on table columnsImmutableEventDatagram readLast(java.lang.String selector)
selector
- on table columnsImmutableEventDatagram waitToRead(java.lang.String selector)
read(String)
but blocks until event is available.selector
- ImmutableEventDatagram waitToReadLast(java.lang.String selector)
readLast(String)
but blocks until event is available.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.selector
- timeout
- unit
- 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.selector
- timeout
- unit
- Copyright © 2015-2024 StreamScape Technologies. All rights reserved.