3#ifndef DEQUEUE_RESULT_H
4#define DEQUEUE_RESULT_H
6#include "StreamBase.hpp"
8#include "StreamProperties.hpp"
10#include "TupleList.hpp"
11#include "StreamBaseURI.hpp"
12#include "StreamBaseConstants.hpp"
14SB_INTERNAL_FWD(DequeueResultUtil);
65 LeadershipStatus _leadershipStatus);
95 return _leadershipStatus;
106 friend class sb_internal::DequeueResultUtil;
110 bool _isLogicalControlStreamMessage;
112 LeadershipStatus _leadershipStatus;
Null value encountered.
Definition: DequeueResult.hpp:19
A callback interface that can be implemented by an object that is associated with a StreamBaseClient ...
Definition: DequeueResult.hpp:30
virtual DequeueResult processResult(const DequeueResult &results)
Take a DequeueResult and modify it.
Definition: DequeueResult.hpp:43
static const DequeueResult SUPPRESSED
SUPPRESSED is a flag used to signify that the results from processResult should be suppressed.
Definition: DequeueResult.hpp:34
Encapsulates the data returned from a dequeue() operation.
Definition: DequeueResult.hpp:23
void reuseTuple()
Currently a no-op maintained for backwards compatibility.
Definition: DequeueResult.hpp:71
const std::string & getStreamName() const
Returns the name of the stream on which tuples were dequeued.
DequeueResult()
Default (null) Constructor.
Definition: DequeueResult.hpp:59
DequeueResult(const StreamProperties &props, const TupleList &tuples, const StreamBaseURI &serverURI, LeadershipStatus _leadershipStatus)
Create a Dequeue Result with a list of tuples, with the given LeadershipStatus.
const TupleList & getTuples() const
Returns the list of tuples.
LeadershipStatus getLeadershipStatus() const
Return the leadership status of the server that produced this dequeue result.
Definition: DequeueResult.hpp:94
const DequeueResult::Status getStatus() const
Return the status of this DequeueResult.
int getTupleCount() const
Returns the number of tuples dequeued.
Status
Possible Dequeue results status.
Definition: DequeueResult.hpp:51
const Tuple & getTuple(int index) const
Returns the index'th tuple.
const StreamBaseURI & getServerURI() const
return the server that produced these results
Definition: DequeueResult.hpp:99
const StreamProperties & getStreamProperties() const
Returns the StreamProperties for this DequeueResult.
A URI for a StreamBase client connection.
Definition: StreamBaseURI.hpp:36
Properties of a single stream.
Definition: StreamProperties.hpp:17
TupleLists are value types that can be copied and modified seperately thus.
Definition: TupleList.hpp:17
Tuples are value types that can be copied and modified separately thus.
Definition: Tuple.hpp:47