org.jboss.jms.delegate
Class DefaultCancel

java.lang.Object
  extended by org.jboss.jms.delegate.DefaultCancel
All Implemented Interfaces:
Cancel

public class DefaultCancel
extends java.lang.Object
implements Cancel

A Cancel. Used to send a cancel (NACK) to the server When we cancel we send delivery count info, this means delivery count can be updated on the server, and into storage if persistent, and the message can be sent to DLQ if appropriate

Version:
$Revision: 3047 $ $Id: DefaultCancel.java 3047 2007-08-23 19:02:05Z clebert.suconic@jboss.com $
Author:
Tim Fox

Constructor Summary
DefaultCancel()
           
DefaultCancel(long deliveryId, int deliveryCount, boolean expired, boolean maxDeliveries)
           
 
Method Summary
 int getDeliveryCount()
           
 long getDeliveryId()
           
 boolean isExpired()
           
 boolean isReachedMaxDeliveryAttempts()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultCancel

public DefaultCancel()

DefaultCancel

public DefaultCancel(long deliveryId,
                     int deliveryCount,
                     boolean expired,
                     boolean maxDeliveries)
Method Detail

getDeliveryId

public long getDeliveryId()
Specified by:
getDeliveryId in interface Cancel

getDeliveryCount

public int getDeliveryCount()
Specified by:
getDeliveryCount in interface Cancel

isExpired

public boolean isExpired()
Specified by:
isExpired in interface Cancel

isReachedMaxDeliveryAttempts

public boolean isReachedMaxDeliveryAttempts()
Specified by:
isReachedMaxDeliveryAttempts in interface Cancel

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006 JBoss Inc. All Rights Reserved.