public class FifoMessageDispatchChannel extends Object implements MessageDispatchChannel
Constructor and Description |
---|
FifoMessageDispatchChannel() |
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) |
Object |
getMutex() |
boolean |
isClosed() |
boolean |
isEmpty() |
boolean |
isRunning() |
MessageDispatch |
peek() |
List<MessageDispatch> |
removeAll() |
int |
size() |
void |
start() |
void |
stop() |
String |
toString() |
public FifoMessageDispatchChannel()
public void enqueue(MessageDispatch message)
enqueue
in interface MessageDispatchChannel
public void enqueueFirst(MessageDispatch message)
enqueueFirst
in interface MessageDispatchChannel
public boolean isEmpty()
isEmpty
in interface MessageDispatchChannel
public MessageDispatch dequeue(long timeout) throws InterruptedException
MessageDispatchChannel
dequeue
in interface MessageDispatchChannel
InterruptedException
public MessageDispatch dequeueNoWait()
dequeueNoWait
in interface MessageDispatchChannel
public MessageDispatch peek()
peek
in interface MessageDispatchChannel
public void start()
start
in interface MessageDispatchChannel
public void stop()
stop
in interface MessageDispatchChannel
public void close()
close
in interface MessageDispatchChannel
public void clear()
clear
in interface MessageDispatchChannel
public boolean isClosed()
isClosed
in interface MessageDispatchChannel
public int size()
size
in interface MessageDispatchChannel
public Object getMutex()
getMutex
in interface MessageDispatchChannel
public boolean isRunning()
isRunning
in interface MessageDispatchChannel
public List<MessageDispatch> removeAll()
removeAll
in interface MessageDispatchChannel
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.