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
ConstructorsConstructorDescriptionSimpleDequeueResult(List<Tuple> tuples, StreamProperties props, StreamBaseURI server) Constructor -
Method Summary
Modifier and TypeMethodDescriptionintReturns 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:DequeueResultReturns the number of tuples dequeued.- Specified by:
getTupleCountin classDequeueResult- Returns:
- number of tuples
-
iterator
Description copied from class:DequeueResultReturns an iterator of all tuples.- Specified by:
iteratorin interfaceIterable<Tuple>- Specified by:
iteratorin classDequeueResult
-