Package org.jgroups.protocols.pbcast
Class FLUSH.FlushHeader
- java.lang.Object
-
- org.jgroups.Header
-
- org.jgroups.protocols.pbcast.FLUSH.FlushHeader
-
- All Implemented Interfaces:
Constructable<Header>,SizeStreamable,Streamable
- Enclosing class:
- FLUSH
public static class FLUSH.FlushHeader extends Header
-
-
Field Summary
Fields Modifier and Type Field Description static byteABORT_FLUSHstatic byteFLUSH_BYPASSstatic byteFLUSH_COMPLETEDstatic byteFLUSH_NOT_COMPLETEDstatic byteFLUSH_RECONCILEstatic byteFLUSH_RECONCILE_OKstatic byteSTART_FLUSHstatic byteSTOP_FLUSHprotected bytetypeprotected longviewID
-
Constructor Summary
Constructors Constructor Description FlushHeader()FlushHeader(byte type)FlushHeader(byte type, long viewID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.Supplier<? extends Header>create()Creates an instance of the class implementing this interfaceshortgetMagicId()Returns the magic-ID.bytegetType()longgetViewID()voidreadFrom(java.io.DataInput in)Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedintserializedSize()Returns the size (in bytes) of the marshalled objectjava.lang.StringtoString()voidwriteTo(java.io.DataOutput out)Write the entire state of the current object (including superclasses) to outstream.
-
-
-
Field Detail
-
START_FLUSH
public static final byte START_FLUSH
- See Also:
- Constant Field Values
-
STOP_FLUSH
public static final byte STOP_FLUSH
- See Also:
- Constant Field Values
-
FLUSH_COMPLETED
public static final byte FLUSH_COMPLETED
- See Also:
- Constant Field Values
-
ABORT_FLUSH
public static final byte ABORT_FLUSH
- See Also:
- Constant Field Values
-
FLUSH_BYPASS
public static final byte FLUSH_BYPASS
- See Also:
- Constant Field Values
-
FLUSH_RECONCILE
public static final byte FLUSH_RECONCILE
- See Also:
- Constant Field Values
-
FLUSH_RECONCILE_OK
public static final byte FLUSH_RECONCILE_OK
- See Also:
- Constant Field Values
-
FLUSH_NOT_COMPLETED
public static final byte FLUSH_NOT_COMPLETED
- See Also:
- Constant Field Values
-
type
protected byte type
-
viewID
protected long viewID
-
-
Method Detail
-
getMagicId
public short getMagicId()
Description copied from class:HeaderReturns the magic-ID. If defined in jg-magic-map.xml, the IDs need to be the same- Specified by:
getMagicIdin classHeader
-
create
public java.util.function.Supplier<? extends Header> create()
Description copied from interface:ConstructableCreates an instance of the class implementing this interface
-
getType
public byte getType()
-
getViewID
public long getViewID()
-
serializedSize
public int serializedSize()
Description copied from interface:SizeStreamableReturns the size (in bytes) of the marshalled object
-
writeTo
public void writeTo(java.io.DataOutput out) throws java.io.IOExceptionDescription copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Throws:
java.io.IOException
-
readFrom
public void readFrom(java.io.DataInput in) throws java.io.IOExceptionDescription copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Throws:
java.io.IOException
-
-