public class Cursor extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<Cursor> |
__TYPE_ARG |
Constructor and Description |
---|
Cursor(io.vertx.sqlclient.Cursor delegate) |
Cursor(Object delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Release the cursor.
|
void |
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
Like
close() but with a completionHandler called when the cursor has been released. |
boolean |
equals(Object o) |
io.vertx.sqlclient.Cursor |
getDelegate() |
int |
hashCode() |
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.reactivex.sqlclient.RowSet<io.vertx.reactivex.sqlclient.Row>>>) should be called to retrieve
them. |
boolean |
isClosed() |
static Cursor |
newInstance(io.vertx.sqlclient.Cursor arg) |
void |
read(int count,
io.vertx.core.Handler<io.vertx.core.AsyncResult<RowSet<Row>>> handler)
Read rows from the cursor, the result is provided asynchronously to the
handler . |
io.reactivex.Completable |
rxClose()
Like
close() but with a completionHandler called when the cursor has been released. |
io.reactivex.Single<RowSet<Row>> |
rxRead(int count)
Read rows from the cursor, the result is provided asynchronously to the
handler . |
String |
toString() |
public Cursor(io.vertx.sqlclient.Cursor delegate)
public Cursor(Object delegate)
public io.vertx.sqlclient.Cursor getDelegate()
public void read(int count, io.vertx.core.Handler<io.vertx.core.AsyncResult<RowSet<Row>>> handler)
handler
.count
- the amount of rows to readhandler
- the handler for the resultpublic io.reactivex.Single<RowSet<Row>> rxRead(int count)
handler
.count
- the amount of rows to readpublic boolean hasMore()
true
when the cursor has results in progress and the read(int, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.sqlclient.RowSet<io.vertx.reactivex.sqlclient.Row>>>)
should be called to retrieve
them.public void close()
public void close(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> completionHandler)
close()
but with a completionHandler
called when the cursor has been released.completionHandler
- public io.reactivex.Completable rxClose()
close()
but with a completionHandler
called when the cursor has been released.public boolean isClosed()
public static Cursor newInstance(io.vertx.sqlclient.Cursor arg)
Copyright © 2021 Eclipse. All rights reserved.