Package org.jgroups.protocols
Class CAUSAL.CausalHeader
java.lang.Object
org.jgroups.Header
org.jgroups.protocols.CAUSAL.CausalHeader
- All Implemented Interfaces:
Externalizable
,Serializable
,Streamable
- Enclosing class:
CAUSAL
- See Also:
-
Field Summary
Fields inherited from class org.jgroups.Header
HDR_OVERHEAD
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a vector timestamp carreid by this headervoid
Manual deserializationvoid
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedint
size()
Size of this vector timestamp estimation, used in fragmetationtoString()
void
Manual serializationvoid
writeTo
(DataOutputStream out) Write the entire state of the current object (including superclasses) to outstream.
-
Constructor Details
-
CausalHeader
public CausalHeader()used for externalization -
CausalHeader
-
-
Method Details
-
getVectorTime
Returns a vector timestamp carreid by this header- Returns:
- Vector timestamp contained in this header
-
size
public int size()Size of this vector timestamp estimation, used in fragmetation -
writeExternal
Manual serialization- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
Manual deserialization- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeTo
Description copied from interface:Streamable
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeTo
in interfaceStreamable
- Throws:
IOException
-
readFrom
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException Description copied from interface:Streamable
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFrom
in interfaceStreamable
- Throws:
IOException
IllegalAccessException
InstantiationException
-
toString
-