public interface Cursor
Modifier and Type | Method and Description |
---|---|
Future<Void> |
close()
Release the cursor.
|
void |
close(Handler<AsyncResult<Void>> completionHandler)
Like
close() but with a completionHandler called when the cursor has been released. |
boolean |
hasMore()
Returns
true when the cursor has results in progress and the read(int, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.sqlclient.RowSet<io.vertx.sqlclient.Row>>>) should be called to retrieve
them. |
boolean |
isClosed() |
Future<RowSet<Row>> |
read(int count)
Like
read(int, Handler) but returns a Future of the asynchronous result |
void |
read(int count,
Handler<AsyncResult<RowSet<Row>>> handler)
Read rows from the cursor, the result is provided asynchronously to the
handler . |
void read(int count, Handler<AsyncResult<RowSet<Row>>> handler)
handler
.count
- the amount of rows to readhandler
- the handler for the resultFuture<RowSet<Row>> read(int count)
read(int, Handler)
but returns a Future
of the asynchronous resultboolean hasMore()
true
when the cursor has results in progress and the read(int, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.sqlclient.RowSet<io.vertx.sqlclient.Row>>>)
should be called to retrieve
them.Future<Void> close()
void close(Handler<AsyncResult<Void>> completionHandler)
close()
but with a completionHandler
called when the cursor has been released.boolean isClosed()
Copyright © 2022 Eclipse. All rights reserved.