Modifier and Type | Class and Description |
---|---|
static interface |
DequeueResult.Interceptor
A callback interface that can be implemented by an object that is associated with
a StreamBaseClient and which gets used in the course of dequeuing tuples.
|
Modifier and Type | Field and Description |
---|---|
static int |
CLOSED
Status code indicating that the connection was closed
|
static int |
GOOD
Status code indicating a normal dequeue
|
protected Constants.LeadershipStatus |
leadershipStatus |
protected StreamProperties |
props |
protected Throwable |
throwable |
static int |
TIMEOUT
Status code indicating a timeout during dequeue
|
Modifier and Type | Method and Description |
---|---|
int |
checkStatus()
Check and return the status of this DequeueResult.
|
Constants.LeadershipStatus |
getLeadershipStatus()
Deprecated.
Legacy high-availability service, migrate to SB 10 high-availability service.
|
Schema |
getSchema()
Returns the schema for the tuples dequeued, may return null
|
StreamBaseURI |
getServerURI()
return the server that produced this DequeueResult.
|
int |
getStatus()
Return the status of this DequeueResult.
|
String |
getStreamName()
Returns the name of the stream on which tuples were dequeued.
|
StreamProperties |
getStreamProperties()
Return the StreamProperties for this DequeueResult.
|
abstract int |
getTupleCount()
Returns the number of tuples dequeued.
|
abstract Iterator<Tuple> |
iterator()
Returns an iterator of all tuples.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static final int GOOD
public static final int TIMEOUT
public static final int CLOSED
protected final StreamProperties props
protected final Throwable throwable
protected final Constants.LeadershipStatus leadershipStatus
public String getStreamName()
public Schema getSchema()
public StreamProperties getStreamProperties()
@Deprecated public Constants.LeadershipStatus getLeadershipStatus()
This method is no longer supported since the StreamBase 10 platform release. Please consult the documentation.
public StreamBaseURI getServerURI()
public abstract int getTupleCount()
public int getStatus()
DequeueResult.GOOD
if the DequeueResult contains tuples.DequeueResult.TIMEOUT
if the DequeueResult contains no tuples
and the number of milliseconds specified in the dequeue(timeoutMS)
method has expired.DequeueResult.CLOSED
if the connection was closedif need exceptions collected by this DequeueResult
public int checkStatus() throws StreamBaseException
DequeueResult.getStatus()
but will throw any exceptions that this DequeueResult
has collected.DequeueResult.getStatus()
StreamBaseException
- if this DequeueResult has collected any exceptionsDequeueResult.getStatus()
Copyright © 2015–2019 Cloud Software Group, Inc.. All rights reserved.