activemq-cpp-3.6.0
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 >:

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.

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 ( )
inlinevirtual

Member Function Documentation

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

Performs a put.

Parameters
ethe item to be handed to a consumer;
timedif this operation should timeout
nanosthe timeout, in nanoseconds
Exceptions
TimeoutExceptionif the operation timed out waiting for the consumer to accept the item offered.
InterruptedExceptionif the thread was interrupted while waiting for the consumer to accept the item offered.

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

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

Performs a take.

Parameters
timedif this operation should timeout
nanosthe timeout, in nanoseconds
Returns
the item provided or received;
Exceptions
TimeoutExceptionif the operation timed out waiting for the producer to offer an item.
InterruptedExceptionif the thread was interrupted while waiting for the producer to offer an item.

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

References NULL.


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