Class MessageCatcher
- java.lang.Object
-
- ejava.examples.jms20.jmsmechanics.MessageCatcher
-
-
Field Summary
Fields Modifier and Type Field Description private int
ackMode
private Destination
destination
private static org.slf4j.Logger
logger
private List<Message>
messages
private String
name
private JMSContext
parentContext
private boolean
started
private boolean
stop
private boolean
stopped
-
Constructor Summary
Constructors Constructor Description MessageCatcher(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearMessages()
void
execute()
int
getCount()
List<Message>
getMessages()
String
getName()
boolean
isStarted()
boolean
isStopped()
void
run()
MessageCatcher
setAckMode(int ackMode)
MessageCatcher
setContext(JMSContext context)
void
setDestination(Destination destination)
void
stop()
-
-
-
Field Detail
-
logger
private static final org.slf4j.Logger logger
-
name
private String name
-
parentContext
private JMSContext parentContext
-
destination
private Destination destination
-
ackMode
private int ackMode
-
stop
private boolean stop
-
stopped
private boolean stopped
-
started
private boolean started
-
-
Constructor Detail
-
MessageCatcher
public MessageCatcher(String name)
-
-
Method Detail
-
getName
public String getName()
-
setContext
public MessageCatcher setContext(JMSContext context)
-
setDestination
public void setDestination(Destination destination)
-
setAckMode
public MessageCatcher setAckMode(int ackMode)
-
getCount
public int getCount()
-
clearMessages
public void clearMessages()
-
stop
public void stop()
-
isStopped
public boolean isStopped()
-
isStarted
public boolean isStarted()
-
execute
public void execute() throws JMSException
- Throws:
JMSException
-
-