org.jboss.jms.delegate
Class DefaultCancel

java.lang.Object
  extended byorg.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: 2684 $ $Id: DefaultCancel.java 2684 2007-05-15 07:31:30Z timfox $
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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


Copyright © 2006 JBoss Inc. All Rights Reserved.