package com.ubermq.jms.common.datagram;
import com.ubermq.kernel.*;
/**
* An acknowledgement datagram. Such a datagram contains information
* about the message that is being acknowledged, and whether we are
* acknowledging receiving it or acknowledging missing it.
*/
public interface IAckDatagram extends IDatagram
{
/**
* Returns the message ID referred to.
* @return a message ID, or null if no message ID is referenced.
*/
public MessageId getAckMessageId();
/**
* If this is a NACK, the sender is indicating that the message was not
* received. If it is an ACK, the sender indicates receipt of the message.
* @return true if this is a NACK, false otherwise.
*/
public boolean isNegativeAck();
}
|