org.jgroups.protocols.pbcast
Class PbcastHeader
- Cloneable, Externalizable
public class PbcastHeader
GOSSIP
public static final int GOSSIP
- 1
MCAST_MSG
public static final int MCAST_MSG
- 0
NOT_MEMBER
public static final int NOT_MEMBER
- 4
XMIT_REQ
public static final int XMIT_REQ
- 2
XMIT_RSP
public static final int XMIT_RSP
- 3
PbcastHeader
public PbcastHeader()
PbcastHeader
public PbcastHeader(int type)
PbcastHeader
public PbcastHeader(int type,
long seqno)
PbcastHeader
public PbcastHeader(Gossip g,
int type)
PbcastHeader
public PbcastHeader(Gossip g,
int type,
long seqno)
getSeqno
public long getSeqno()
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
size
public long size()
To be implemented by subclasses. Return the size of this object for the serialized version of it.
I.e. how many bytes this object takes when flattened into a buffer. This may be different for each instance,
or can be the same. This may also just be an estimation. E.g. FRAG uses it on Message to determine whether
or not to fragment the message. Fragmentation itself will be accurate, because the entire message will actually
be serialized into a byte buffer, so we can determine the exact size.
- size in interface Header
toString
public String toString()
- toString in interface Header
type2String
public static String type2String(int t)
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.