public class SimplePriorityMessageDispatchChannel extends Object implements MessageDispatchChannel
| Constructor and Description |
|---|
SimplePriorityMessageDispatchChannel() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
close() |
MessageDispatch |
dequeue(long timeout)
Used to get an enqueued message.
|
MessageDispatch |
dequeueNoWait() |
void |
enqueue(MessageDispatch message) |
void |
enqueueFirst(MessageDispatch message) |
protected LinkedList<MessageDispatch> |
getList(MessageDispatch md) |
Object |
getMutex() |
protected int |
getPriority(MessageDispatch message) |
boolean |
isClosed() |
boolean |
isEmpty() |
boolean |
isRunning() |
MessageDispatch |
peek() |
List<MessageDispatch> |
removeAll() |
int |
size() |
void |
start() |
void |
stop() |
String |
toString() |
public SimplePriorityMessageDispatchChannel()
public void enqueue(MessageDispatch message)
enqueue in interface MessageDispatchChannelpublic void enqueueFirst(MessageDispatch message)
enqueueFirst in interface MessageDispatchChannelpublic boolean isEmpty()
isEmpty in interface MessageDispatchChannelpublic MessageDispatch dequeue(long timeout) throws InterruptedException
MessageDispatchChanneldequeue in interface MessageDispatchChannelInterruptedExceptionpublic MessageDispatch dequeueNoWait()
dequeueNoWait in interface MessageDispatchChannelpublic MessageDispatch peek()
peek in interface MessageDispatchChannelpublic void start()
start in interface MessageDispatchChannelpublic void stop()
stop in interface MessageDispatchChannelpublic void close()
close in interface MessageDispatchChannelpublic void clear()
clear in interface MessageDispatchChannelpublic boolean isClosed()
isClosed in interface MessageDispatchChannelpublic int size()
size in interface MessageDispatchChannelpublic Object getMutex()
getMutex in interface MessageDispatchChannelpublic boolean isRunning()
isRunning in interface MessageDispatchChannelpublic List<MessageDispatch> removeAll()
removeAll in interface MessageDispatchChannelprotected int getPriority(MessageDispatch message)
protected LinkedList<MessageDispatch> getList(MessageDispatch md)
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.