decaf::internal::util::concurrent::TransferStack< E > Class Template Reference

#include <src/main/decaf/internal/util/concurrent/TransferStack.h>

Inheritance diagram for decaf::internal::util::concurrent::TransferStack< E >:
Inheritance graph
[legend]

Public Member Functions

 TransferStack ()
virtual ~TransferStack ()
virtual void transfer (E *e, bool timed, long long nanos)
 Performs a put.
virtual E * transfer (bool timed, long long nanos)
 Performs a take.

template<typename E>
class decaf::internal::util::concurrent::TransferStack< E >


Constructor & Destructor Documentation

template<typename E >
decaf::internal::util::concurrent::TransferStack< E >::TransferStack (  )  [inline]
template<typename E >
virtual decaf::internal::util::concurrent::TransferStack< E >::~TransferStack (  )  [inline, virtual]

Member Function Documentation

template<typename E >
virtual E* decaf::internal::util::concurrent::TransferStack< E >::transfer ( bool  timed,
long long  nanos 
) [inline, virtual]

Performs a take.

Parameters:
timed if this operation should timeout
nanos the timeout, in nanoseconds
Returns:
the item provided or received;
Exceptions:
TimeoutException if the operation timed out waiting for the producer to offer an item.
InterruptedException if the thread was interrupted while waiting for the producer to offer an item.

Implements decaf::internal::util::concurrent::Transferer< E >.

References NULL.

template<typename E >
virtual void decaf::internal::util::concurrent::TransferStack< E >::transfer ( E *  e,
bool  timed,
long long  nanos 
) [inline, virtual]

Performs a put.

Parameters:
e the item to be handed to a consumer;
timed if this operation should timeout
nanos the timeout, in nanoseconds
Exceptions:
TimeoutException if the operation timed out waiting for the consumer to accept the item offered.
InterruptedException if the thread was interrupted while waiting for the consumer to accept the item offered.

Implements decaf::internal::util::concurrent::Transferer< E >.


The documentation for this class was generated from the following file:

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1