KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ubermq > jms > common > datagram > IAckDatagram


1 package com.ubermq.jms.common.datagram;
2 import com.ubermq.kernel.*;
3
4 /**
5  * An acknowledgement datagram. Such a datagram contains information
6  * about the message that is being acknowledged, and whether we are
7  * acknowledging receiving it or acknowledging missing it.
8  */

9 public interface IAckDatagram extends IDatagram
10 {
11     /**
12      * Returns the message ID referred to.
13      * @return a message ID, or null if no message ID is referenced.
14      */

15     public MessageId getAckMessageId();
16     
17     /**
18      * If this is a NACK, the sender is indicating that the message was not
19      * received. If it is an ACK, the sender indicates receipt of the message.
20      * @return true if this is a NACK, false otherwise.
21      */

22     public boolean isNegativeAck();
23 }
24
Popular Tags