Package org.apache.ignite.table
Interface ContinuousQuerySource<T>
- Type Parameters:
T- Entry type.
- All Known Subinterfaces:
KeyValueView<K,,V> RecordView<R>
public interface ContinuousQuerySource<T>
Represents an object which can be queried continuously.
Row-Level Security
When row-level security (RLS) is enabled for the underlying table, read policies are enforced for every change event delivered to subscribers:
- The read-access-restricted side of an event (old or new row) is replaced with
null, as if the row did not exist at that point in time. The event type is preserved as-is:- An
UPDATEDevent where the old version has read access restricted but the new version does not is delivered withtableRowEvent.oldEntry() == null. - An
UPDATEDevent where the old version has no read access restriction but the new version does is delivered withtableRowEvent.entry() == null.
- An
- If read access is restricted for both the old and new versions of a row, the event is suppressed entirely and the subscriber does not receive it.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidqueryContinuously(Flow.Subscriber<TableRowEventBatch<T>> subscriber) Starts a continuous query which listens to data events within the underlying table.voidqueryContinuously(Flow.Subscriber<TableRowEventBatch<T>> subscriber, @Nullable ContinuousQueryOptions options) Starts a continuous query which listens to data events within the underlying table.default voidqueryContinuously(Flow.Subscriber<TableRowEventBatch<T>> subscriber, @Nullable ContinuousQueryOptions options, @Nullable CancellationToken cancellationToken) Starts a continuous query which listens to data events within the underlying table.
-
Method Details
-
queryContinuously
void queryContinuously(Flow.Subscriber<TableRowEventBatch<T>> subscriber, @Nullable @Nullable ContinuousQueryOptions options) Starts a continuous query which listens to data events within the underlying table.- Parameters:
subscriber- Subscriber.options- Options (can be null).
-
queryContinuously
Starts a continuous query which listens to data events within the underlying table.- Parameters:
subscriber- Subscriber.
-
queryContinuously
default void queryContinuously(Flow.Subscriber<TableRowEventBatch<T>> subscriber, @Nullable @Nullable ContinuousQueryOptions options, @Nullable @Nullable CancellationToken cancellationToken) Starts a continuous query which listens to data events within the underlying table.The query is stopped when either the subscription is cancelled via
Flow.Subscription.cancel()or the providedCancellationTokenis cancelled.- Parameters:
subscriber- Subscriber.options- Options (can be null).cancellationToken- Cancellation token (can be null). When cancelled, the continuous query is stopped as ifFlow.Subscription.cancel()was called.
-