org.jgroups.service.lease
Class LeaseInfoReplicationHeader

java.lang.Object
  extended byorg.jgroups.Header
      extended byorg.jgroups.service.lease.LeaseInfoReplicationHeader
All Implemented Interfaces:
java.lang.Cloneable, java.io.Externalizable, java.io.Serializable

public class LeaseInfoReplicationHeader
extends Header

See Also:
Serialized Form

Field Summary
static int CANCEL_LEASE_TYPE
           
static java.lang.String HEADER_KEY
           
static int NEW_LEASE_TYPE
           
static int NONE
           
static int RENEW_LEASE_TYPE
           
 
Fields inherited from class org.jgroups.Header
HDR_OVERHEAD
 
Constructor Summary
LeaseInfoReplicationHeader()
          Construct uninitialized instance of this object.
LeaseInfoReplicationHeader(int headerType, LeaseFactoryService.LeaseInfo leaseInfo)
          Create instance of this object for a specified lease info object.
 
Method Summary
 LeaseFactoryService.LeaseInfo getLeaseInfo()
          Get lease info from this header.
 int getType()
          Get header type.
 void readExternal(java.io.ObjectInput in)
          Read state of this object from ObjectInput
 void writeExternal(java.io.ObjectOutput out)
          Write state of this header into ObjectOutput.
 
Methods inherited from class org.jgroups.Header
size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

HEADER_KEY

public static final java.lang.String HEADER_KEY
See Also:
Constant Field Values

NONE

public static final int NONE
See Also:
Constant Field Values

NEW_LEASE_TYPE

public static final int NEW_LEASE_TYPE
See Also:
Constant Field Values

RENEW_LEASE_TYPE

public static final int RENEW_LEASE_TYPE
See Also:
Constant Field Values

CANCEL_LEASE_TYPE

public static final int CANCEL_LEASE_TYPE
See Also:
Constant Field Values
Constructor Detail

LeaseInfoReplicationHeader

public LeaseInfoReplicationHeader()
Construct uninitialized instance of this object.


LeaseInfoReplicationHeader

public LeaseInfoReplicationHeader(int headerType,
                                  LeaseFactoryService.LeaseInfo leaseInfo)
Create instance of this object for a specified lease info object.

Method Detail

getType

public int getType()
Get header type.


getLeaseInfo

public LeaseFactoryService.LeaseInfo getLeaseInfo()
Get lease info from this header.


readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Read state of this object from ObjectInput

Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Write state of this header into ObjectOutput.

Throws:
java.io.IOException


Copyright ? 2001,2002 www.jgroups.com . All Rights Reserved.