public final class Responder extends Object implements StoreCursor.Responder
| Constructor and Description |
|---|
Responder(TheStoreConnection connection,
Points points,
int backEndLimit,
int statementsLimit)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this.
|
long |
count()
Returns the count of values that would satisfy the query.
|
TheStoreConnection |
getConnection()
Gets the store connection.
|
int |
limit()
Returns a limit on the number of values allowed by the backend.
|
Optional<VersionedValue> |
next()
Returns the next point value.
|
void |
reset(Optional<StoreCursor> storeCursor)
Resets this responder.
|
public Responder(@Nonnull
TheStoreConnection connection,
@Nonnull
Points points,
int backEndLimit,
int statementsLimit)
connection - The connection to use for database services.points - The point from which to get the point definitions.backEndLimit - A limit on the number of values allowed.statementsLimit - A limit on the number of cached statements.public void close()
public long count()
count in interface StoreCursor.Responder@Nonnull @CheckReturnValue public TheStoreConnection getConnection()
public int limit()
limit in interface StoreCursor.Responderpublic Optional<VersionedValue> next()
next in interface StoreCursor.Responderpublic void reset(Optional<StoreCursor> storeCursor)
The responder should free resources reserved by a previous store
query. If the store cursor parameter is not empty, it should prepare
for calls to its StoreCursor.Responder.next() method.
reset in interface StoreCursor.ResponderstoreCursor - The controlling store cursor (may be empty).Copyright © 2003-2019 Serge Brisson. All Rights Reserved.