|
| | SimplePriorityMessageDispatchChannel () |
| |
| virtual | ~SimplePriorityMessageDispatchChannel () |
| |
| virtual void | enqueue (const Pointer< MessageDispatch > &message) |
| | Add a Message to the Channel behind all pending message.
|
| |
| virtual void | enqueueFirst (const Pointer< MessageDispatch > &message) |
| | Add a message to the front of the Channel.
|
| |
| virtual bool | isEmpty () const |
| |
| virtual bool | isClosed () const |
| |
| virtual bool | isRunning () const |
| |
| virtual Pointer< MessageDispatch > | dequeue (long long timeout) |
| | Used to get an enqueued message.
|
| |
| virtual Pointer< MessageDispatch > | dequeueNoWait () |
| | Used to get an enqueued message if there is one queued right now.
|
| |
| virtual Pointer< MessageDispatch > | peek () const |
| | Peek in the Queue and return the first message in the Channel without removing it from the channel.
|
| |
| virtual void | start () |
| | Starts dispatch of messages from the Channel.
|
| |
| virtual void | stop () |
| | Stops dispatch of message from the Channel.
|
| |
| virtual void | close () |
| | Close this channel no messages will be dispatched after this method is called.
|
| |
| virtual void | clear () |
| | Clear the Channel, all pending messages are removed.
|
| |
| virtual int | size () const |
| |
| virtual std::vector< Pointer< MessageDispatch > > | removeAll () |
| | Remove all messages that are currently in the Channel and return them as a list of Messages.
|
| |
| virtual void | lock () |
| | Locks the object.
|
| |
| virtual bool | tryLock () |
| | Attempts to Lock the object, if the lock is already held by another thread than this method returns false.
|
| |
| virtual void | unlock () |
| | Unlocks the object.
|
| |
| virtual void | wait () |
| | Waits on a signal from this object, which is generated by a call to Notify.
|
| |
| virtual void | wait (long long millisecs) |
| | Waits on a signal from this object, which is generated by a call to Notify.
|
| |
| virtual void | wait (long long millisecs, int nanos) |
| | Waits on a signal from this object, which is generated by a call to Notify.
|
| |
| virtual void | notify () |
| | Signals a waiter on this object that it can now wake up and continue.
|
| |
| virtual void | notifyAll () |
| | Signals the waiters on this object that it can now wake up and continue.
|
| |
| virtual | ~MessageDispatchChannel () |
| |
| virtual void | enqueue (const Pointer< MessageDispatch > &message)=0 |
| | Add a Message to the Channel behind all pending message.
|
| |
| virtual void | enqueueFirst (const Pointer< MessageDispatch > &message)=0 |
| | Add a message to the front of the Channel.
|
| |
| virtual bool | isEmpty () const =0 |
| |
| virtual bool | isClosed () const =0 |
| |
| virtual bool | isRunning () const =0 |
| |
| virtual Pointer< MessageDispatch > | dequeue (long long timeout)=0 |
| | Used to get an enqueued message.
|
| |
| virtual Pointer< MessageDispatch > | dequeueNoWait ()=0 |
| | Used to get an enqueued message if there is one queued right now.
|
| |
| virtual Pointer< MessageDispatch > | peek () const =0 |
| | Peek in the Queue and return the first message in the Channel without removing it from the channel.
|
| |
| virtual void | start ()=0 |
| | Starts dispatch of messages from the Channel.
|
| |
| virtual void | stop ()=0 |
| | Stops dispatch of message from the Channel.
|
| |
| virtual void | close ()=0 |
| | Close this channel no messages will be dispatched after this method is called.
|
| |
| virtual void | clear ()=0 |
| | Clear the Channel, all pending messages are removed.
|
| |
| virtual int | size () const =0 |
| |
| virtual std::vector< Pointer< MessageDispatch > > | removeAll ()=0 |
| | Remove all messages that are currently in the Channel and return them as a list of Messages.
|
| |
| virtual | ~Synchronizable () |
| |
| virtual void | lock ()=0 |
| | Locks the object.
|
| |
| virtual bool | tryLock ()=0 |
| | Attempts to Lock the object, if the lock is already held by another thread than this method returns false.
|
| |
| virtual void | unlock ()=0 |
| | Unlocks the object.
|
| |
| virtual void | wait ()=0 |
| | Waits on a signal from this object, which is generated by a call to Notify.
|
| |
| virtual void | wait (long long millisecs)=0 |
| | Waits on a signal from this object, which is generated by a call to Notify.
|
| |
| virtual void | wait (long long millisecs, int nanos)=0 |
| | Waits on a signal from this object, which is generated by a call to Notify.
|
| |
| virtual void | notify ()=0 |
| | Signals a waiter on this object that it can now wake up and continue.
|
| |
| virtual void | notifyAll ()=0 |
| | Signals the waiters on this object that it can now wake up and continue.
|
| |
| virtual void activemq::core::SimplePriorityMessageDispatchChannel::wait |
( |
long long |
millisecs, |
|
|
int |
nanos |
|
) |
| |
|
inlinevirtual |
Waits on a signal from this object, which is generated by a call to Notify.
Must have this object locked before calling. This wait will timeout after the specified time interval. This method is similar to the one argument wait function except that it add a finer grained control over the amount of time that it waits by adding in the additional nanosecond argument.
NOTE: The ability to wait accurately at a nanosecond scale depends on the platform and OS that the Decaf API is running on, some systems do not provide an accurate enough clock to provide this level of granularity.
- Parameters
-
| millisecs | the time in milliseconds to wait, or WAIT_INIFINITE |
| nanos | additional time in nanoseconds with a range of 0-999999 |
- Exceptions
-
| IllegalArgumentException | if an error occurs or the nanos argument is not in the range of [0-999999] |
| RuntimeException | if an error occurs while waiting on the object. |
| InterruptedException | if the wait is interrupted before it completes. |
| IllegalMonitorStateException | - if the current thread is not the owner of the the Synchronizable Object. |
Implements decaf::util::concurrent::Synchronizable.
References decaf::util::concurrent::Mutex::wait().