public class BlockingQueryOptions extends Object
Constructor and Description |
---|
BlockingQueryOptions()
Default constructor
|
BlockingQueryOptions(BlockingQueryOptions options)
Copy constructor
|
BlockingQueryOptions(JsonObject options)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
long |
getIndex()
Get index
|
String |
getWait()
Get wait period
|
BlockingQueryOptions |
setIndex(long index)
Set index indicating that the client wishes to wait for any changes subsequent to that index.
|
BlockingQueryOptions |
setWait(String wait)
Specifying a maximum duration for the blocking request.
|
JsonObject |
toJson()
Convert to JSON
|
public BlockingQueryOptions()
public BlockingQueryOptions(BlockingQueryOptions options)
options
- the one to copypublic BlockingQueryOptions(JsonObject options)
options
- the JSONpublic JsonObject toJson()
public long getIndex()
public BlockingQueryOptions setIndex(long index)
index
- the indexpublic String getWait()
public BlockingQueryOptions setWait(String wait)
wait
- wait periodCopyright © 2023 Eclipse. All rights reserved.