activemq-cpp-3.9.5
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

◆ TransferStack()

template<typename E>
decaf::internal::util::concurrent::TransferStack< E >::TransferStack ( )
inline

◆ ~TransferStack()

template<typename E>
virtual decaf::internal::util::concurrent::TransferStack< E >::~TransferStack ( )
inlinevirtual

Member Function Documentation

◆ transfer() [1/2]

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.

◆ transfer() [2/2]

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 >.


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