org.exolab.jms.lease
Class MessageLease

java.lang.Object
  |
  +--org.exolab.jms.lease.BaseLease
        |
        +--org.exolab.jms.lease.MessageLease
All Implemented Interfaces:
java.lang.Comparable, LeaseIfc, java.io.Serializable

public class MessageLease
extends BaseLease

This is a lease specifically for a MessageHandle. A MessageHandle is a reference to a Message

Version:
$Revision: 1.6 $ $Date: 2003/08/07 13:33:00 $
Author:
Jim Alateras
See Also:
MessageHandle, Serialized Form

Fields inherited from class org.exolab.jms.lease.BaseLease
duration_, expiryTime_, leasedObject_, listener_
 
Constructor Summary
MessageLease()
          Default constructor for the Serailizable/Externalizable interface
MessageLease(MessageHandle handle, long duration, LeaseEventListenerIfc listener)
          Construct an instance of this class with the specified message handle and duration.
 
Methods inherited from class org.exolab.jms.lease.BaseLease
compareTo, getDuration, getExpiryTime, getLeasedObject, getLeasedObjectType, getLeaseEventListener, getRemainingTime, setDuration, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageLease

public MessageLease()
Default constructor for the Serailizable/Externalizable interface

MessageLease

public MessageLease(MessageHandle handle,
                    long duration,
                    LeaseEventListenerIfc listener)
Construct an instance of this class with the specified message handle and duration.
Parameters:
handle - leased object
duration - duration of lease
listener - listener to be notified of lease events


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.