org.jgroups.service.lease

Class LeaseInfoReplicationHeader

Implemented Interfaces:
Cloneable, Externalizable

public class LeaseInfoReplicationHeader
extends Header

Field Summary

static int
CANCEL_LEASE_TYPE
static 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(ObjectInput in)
Read state of this object from ObjectInput
void
writeExternal(ObjectOutput out)
Write state of this header into ObjectOutput.

Methods inherited from class org.jgroups.Header

size, toString

Field Details

CANCEL_LEASE_TYPE

public static final int CANCEL_LEASE_TYPE
Field Value:
3

HEADER_KEY

public static final String HEADER_KEY

NEW_LEASE_TYPE

public static final int NEW_LEASE_TYPE
Field Value:
1

NONE

public static final int NONE
Field Value:
0

RENEW_LEASE_TYPE

public static final int RENEW_LEASE_TYPE
Field Value:
2

Constructor Details

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 Details

getLeaseInfo

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

getType

public int getType()
Get header type.

readExternal

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

writeExternal

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

Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.