Class Consumer
- java.lang.Object
-
- org.apache.activemq.artemis.cli.commands.ActionAbstract
-
- org.apache.activemq.artemis.cli.commands.InputAbstract
-
- org.apache.activemq.artemis.cli.commands.messages.ConnectionConfigurationAbtract
-
- org.apache.activemq.artemis.cli.commands.messages.BasicConnectionAbstract
-
- org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract
-
- org.apache.activemq.artemis.cli.commands.messages.DestAbstract
-
- org.apache.activemq.artemis.cli.commands.messages.Consumer
-
public class Consumer extends DestAbstract
-
-
Field Summary
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.messages.DestAbstract
txBatchSize
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract
clientID, protocol
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionConfigurationAbtract
acceptor, brokerURL, CONNECTION_INFORMATION, password, silent, user
-
Fields inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
DEFAULT_BROKER_ACCEPTOR, DEFAULT_BROKER_URL, verbose
-
-
Constructor Summary
Constructors Constructor Description Consumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectexecute(ActionContext context)StringgetFile()StringgetFilter()intgetReceiveTimeout()booleanisBreakOnNull()booleanisDurable()ConsumersetBreakOnNull(boolean breakOnNull)ConsumersetDurable(boolean durable)ConsumersetFile(String file)ConsumersetFilter(String filter)ConsumersetReceiveTimeout(int receiveTimeout)-
Methods inherited from class org.apache.activemq.artemis.cli.commands.messages.DestAbstract
getDestination, getDestination, getDestination, getMessageCount, getMessageSerializer, getSerializer, getSleep, getThreads, getTxBatchSize, setDestination, setMessageCount, setSerializer, setSleep, setThreads, setTxBatchSize, stripPrefix
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionAbstract
createConnectionFactory, createConnectionFactory, createCoreConnectionFactory, createCoreConnectionFactory, getClientID, getProtocol, setClientID, setProtocol, setProtocol
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.messages.BasicConnectionAbstract
createConnectionFactory, performCoreManagement, performCoreManagement, tryConnect
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.messages.ConnectionConfigurationAbtract
getAcceptor, getBrokerURL, getPassword, getUser, inputBrokerURL, inputPassword, inputUser, recoverConnectionInformation, saveConnectionInfo, setAcceptor, setBrokerURL, setPassword, setUser
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.InputAbstract
enableInput, input, input, inputBoolean, inputInteger, inputPassword, isSilentInput, setSilentInput
-
Methods inherited from class org.apache.activemq.artemis.cli.commands.ActionAbstract
done, getActionContext, getBrokerConfiguration, getBrokerEtc, getBrokerHome, getBrokerInstance, getBrokerURIInstance, getBrokerURLInstance, isVerbose, run, setHomeValues
-
-
-
-
Method Detail
-
execute
public Object execute(ActionContext context) throws Exception
- Specified by:
executein interfaceAction- Overrides:
executein classDestAbstract- Throws:
Exception
-
isDurable
public boolean isDurable()
-
setDurable
public Consumer setDurable(boolean durable)
-
isBreakOnNull
public boolean isBreakOnNull()
-
setBreakOnNull
public Consumer setBreakOnNull(boolean breakOnNull)
-
getReceiveTimeout
public int getReceiveTimeout()
-
setReceiveTimeout
public Consumer setReceiveTimeout(int receiveTimeout)
-
getFilter
public String getFilter()
-
getFile
public String getFile()
-
-