Package org.citrusframework.message
Class DefaultMessageQueue
java.lang.Object
org.citrusframework.message.DefaultMessageQueue
- All Implemented Interfaces:
MessageQueue
Default message queue implementation. Holds queued messages in memory and adds selective consumption of messages
according to a message selector implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGets the pollingInterval.booleanObtains the loggingEnabled.voidpurge(MessageSelector selector) receive(MessageSelector selector) receive(MessageSelector selector, long timeout) voidvoidsetLoggingEnabled(boolean loggingEnabled) Specifies the loggingEnabled.voidsetPollingInterval(long pollingInterval) Sets the pollingInterval.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.citrusframework.message.MessageQueue
receive, receive
-
Constructor Details
-
DefaultMessageQueue
-
-
Method Details
-
send
- Specified by:
sendin interfaceMessageQueue
-
receive
- Specified by:
receivein interfaceMessageQueue
-
receive
- Specified by:
receivein interfaceMessageQueue
-
purge
- Specified by:
purgein interfaceMessageQueue
-
getPollingInterval
public long getPollingInterval()Gets the pollingInterval.- Returns:
- the pollingInterval to get.
-
setPollingInterval
public void setPollingInterval(long pollingInterval) Sets the pollingInterval.- Parameters:
pollingInterval- the pollingInterval to set
-
isLoggingEnabled
public boolean isLoggingEnabled()Obtains the loggingEnabled.- Returns:
-
setLoggingEnabled
public void setLoggingEnabled(boolean loggingEnabled) Specifies the loggingEnabled.- Parameters:
loggingEnabled-
-
toString
-