Package com.streambase.sb.client
Class SimpleDequeueResult
java.lang.Object
com.streambase.sb.client.DequeueResult
com.streambase.sb.client.SimpleDequeueResult
A simple concrete implementation of DequeueResult, primarily intended for use by implementors of
DequeueResult.Interceptor to allow them to construct an alternative DequeueResult.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.streambase.sb.client.DequeueResult
DequeueResult.Interceptor
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSimpleDequeueResult
(List<Tuple> tuples, StreamProperties props, StreamBaseURI server) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of tuples dequeued.iterator()
Returns an iterator of all tuples.Methods inherited from class com.streambase.sb.client.DequeueResult
checkStatus, getSchema, getServerURI, getStatus, getStreamName, getStreamProperties, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SimpleDequeueResult
Constructor- Parameters:
tuples
- tuplesprops
- stream propertiesserver
- server URI
-
-
Method Details
-
getTupleCount
public int getTupleCount()Description copied from class:DequeueResult
Returns the number of tuples dequeued.- Specified by:
getTupleCount
in classDequeueResult
- Returns:
- number of tuples
-
iterator
Description copied from class:DequeueResult
Returns an iterator of all tuples.- Specified by:
iterator
in interfaceIterable<Tuple>
- Specified by:
iterator
in classDequeueResult
-