IAckDatagram.java :  » JMS » UberMQ » com » ubermq » jms » common » datagram » Java Open Source

Java Open Source » JMS » UberMQ 
UberMQ » com » ubermq » jms » common » datagram » IAckDatagram.java
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();
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.