#include <AuroraNode.h>
You can obtain a handle using AuroraNode::getDequeueHandle() Once a handle is closed, it is invalid and may not be used further for dequeuing.
This class is threadsafe: you may call AuroraNode::getDequeueHandle(), and the subscribe(), dequeue(), and close() methods of this class, at any time when the network is running. subscribe() and close() may be invoked even when dequeue() is blocking.
Public Member Functions | |
DequeueHandle () | |
void | subscribe (string name) throw ( AuroraException ) |
Subscribe to a stream. | |
void | unsubscribe (string name) throw ( AuroraException ) |
Subscribe to a stream. | |
size_t | dequeue (string &stream_name, TupleDescription &td, void *buffer, size_t buffer_size) throw ( AuroraException ) |
Dequeue tuples from any subscribed stream. | |
void | close () |
Closes the handle for dequeueing, causing any pending dequeue() operations to return 0. |
|
|
|
Closes the handle for dequeueing, causing any pending dequeue() operations to return 0.
|
|
Dequeue tuples from any subscribed stream. This method blocks until
Sets stream_name to the name of stream and td to the description of the tuples that have been dequeued. Up to buffer_size bytes are written to the buffer (the actual number of bytes written can be calculated as return-value * td.getSizeInBytes()).
|
|
Subscribe to a stream. Future calls to dequeue() will return tuples from this stream. |
|
Subscribe to a stream. Future calls to dequeue() will not return tuples from this stream. |