Package org.jgroups.protocols
Class CAUSAL.CausalNewViewHeader
java.lang.Object
org.jgroups.Header
org.jgroups.protocols.CAUSAL.CausalNewViewHeader
- All Implemented Interfaces:
Externalizable
,Serializable
,Streamable
- Enclosing class:
CAUSAL
- See Also:
-
Field Summary
FieldsFields inherited from class org.jgroups.Header
HDR_OVERHEAD
-
Constructor Summary
ConstructorsConstructorDescriptionUsed for externalization.CausalNewViewHeader
(ViewId newViewId, int localTime, boolean complete) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
void
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 fragmentation.toString()
void
Manual serializationvoid
writeTo
(DataOutputStream out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
CausalNewViewHeader
-
CausalNewViewHeader
public CausalNewViewHeader()Used for externalization.
-
-
Method Details
-
getNewViewId
-
getLocalTime
public int getLocalTime() -
isComplete
public boolean isComplete() -
size
public int size()Size of this vector timestamp estimation, used in fragmentation. -
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
-