public class CursorImpl extends Object implements Cursor
| Modifier and Type | Method and Description |
|---|---|
Future<Void> |
close()
Release the cursor.
|
void |
close(Handler<AsyncResult<Void>> completionHandler)
Like
Cursor.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 Cursor.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
Cursor.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. |
public boolean hasMore()
Cursortrue when the cursor has results in progress and the Cursor.read(int, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.sqlclient.RowSet<io.vertx.sqlclient.Row>>>) should be called to retrieve
them.public void read(int count,
Handler<AsyncResult<RowSet<Row>>> handler)
Cursorhandler.public Future<RowSet<Row>> read(int count)
CursorCursor.read(int, Handler) but returns a Future of the asynchronous resultpublic boolean isClosed()
public void close(Handler<AsyncResult<Void>> completionHandler)
CursorCursor.close() but with a completionHandler called when the cursor has been released.Copyright © 2021. All rights reserved.