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 byte
ABORT_FLUSH
static byte
FLUSH_BYPASS
static byte
FLUSH_COMPLETED
static byte
FLUSH_NOT_COMPLETED
static byte
FLUSH_RECONCILE
static byte
FLUSH_RECONCILE_OK
static byte
START_FLUSH
static byte
STOP_FLUSH
protected byte
type
protected long
viewID
-
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 interfaceshort
getMagicId()
Returns the magic-ID.byte
getType()
long
getViewID()
void
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedint
serializedSize()
Returns the size (in bytes) of the marshalled objectjava.lang.String
toString()
void
writeTo(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:Header
Returns the magic-ID. If defined in jg-magic-map.xml, the IDs need to be the same- Specified by:
getMagicId
in classHeader
-
create
public java.util.function.Supplier<? extends Header> create()
Description copied from interface:Constructable
Creates an instance of the class implementing this interface
-
getType
public byte getType()
-
getViewID
public long getViewID()
-
serializedSize
public int serializedSize()
Description copied from interface:SizeStreamable
Returns the size (in bytes) of the marshalled object
-
writeTo
public void writeTo(java.io.DataOutput out) throws java.io.IOException
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- Throws:
java.io.IOException
-
readFrom
public void readFrom(java.io.DataInput in) throws java.io.IOException
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- Throws:
java.io.IOException
-
-