Package org.apache.qpid.jms
Class JmsAcknowledgeCallback
- java.lang.Object
-
- org.apache.qpid.jms.JmsAcknowledgeCallback
-
public final class JmsAcknowledgeCallback extends Object
-
-
Constructor Summary
Constructors Constructor Description JmsAcknowledgeCallback(JmsSession session)JmsAcknowledgeCallback(JmsSession session, JmsInboundMessageDispatch envelope)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidacknowledge()voidclearAckType()Clears any previous setting and restores defaults.intgetAckType()booleanisAckTypeSet()voidsetAckType(int ackType)Sets the acknowledgement type that will be used.
-
-
-
Constructor Detail
-
JmsAcknowledgeCallback
public JmsAcknowledgeCallback(JmsSession session)
-
JmsAcknowledgeCallback
public JmsAcknowledgeCallback(JmsSession session, JmsInboundMessageDispatch envelope)
-
-
Method Detail
-
acknowledge
public void acknowledge() throws javax.jms.JMSException- Throws:
javax.jms.JMSException
-
isAckTypeSet
public boolean isAckTypeSet()
- Returns:
- true if the acknowledgement type was updated.
-
clearAckType
public void clearAckType()
Clears any previous setting and restores defaults.
-
getAckType
public int getAckType()
- Returns:
- the ackType that has been configured or the default if none has been set.
-
setAckType
public void setAckType(int ackType)
Sets the acknowledgement type that will be used.- Parameters:
ackType- the ackType to apply to the session acknowledge.
-
-