Package org.jgroups.blocks
Class RequestCorrelator.MultiDestinationHeader
- java.lang.Object
-
- org.jgroups.Header
-
- org.jgroups.blocks.RequestCorrelator.Header
-
- org.jgroups.blocks.RequestCorrelator.MultiDestinationHeader
-
- All Implemented Interfaces:
Constructable<Header>
,SizeStreamable
,Streamable
- Enclosing class:
- RequestCorrelator
public static final class RequestCorrelator.MultiDestinationHeader extends RequestCorrelator.Header
-
-
Field Summary
Fields Modifier and Type Field Description Address[]
exclusion_list
Contains a list of members who should not receive the request (others will drop).
-
Constructor Summary
Constructors Constructor Description MultiDestinationHeader()
MultiDestinationHeader(byte type, long id, short corr_id, Address[] exclusion_list)
-
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.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.-
Methods inherited from class org.jgroups.blocks.RequestCorrelator.Header
corrId, requestId, requestId, rspExpected
-
-
-
-
Field Detail
-
exclusion_list
public Address[] exclusion_list
Contains a list of members who should not receive the request (others will drop). Ignored if null
-
-
Constructor Detail
-
MultiDestinationHeader
public MultiDestinationHeader()
-
MultiDestinationHeader
public MultiDestinationHeader(byte type, long id, short corr_id, Address[] exclusion_list)
-
-
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- Overrides:
getMagicId
in classRequestCorrelator.Header
-
create
public java.util.function.Supplier<? extends Header> create()
Description copied from interface:Constructable
Creates an instance of the class implementing this interface- Specified by:
create
in interfaceConstructable<Header>
- Overrides:
create
in classRequestCorrelator.Header
-
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- Specified by:
writeTo
in interfaceStreamable
- Overrides:
writeTo
in classRequestCorrelator.Header
- Throws:
java.io.IOException
-
readFrom
public void readFrom(java.io.DataInput in) throws java.io.IOException, java.lang.ClassNotFoundException
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
- Overrides:
readFrom
in classRequestCorrelator.Header
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
serializedSize
public int serializedSize()
Description copied from interface:SizeStreamable
Returns the size (in bytes) of the marshalled object- Specified by:
serializedSize
in interfaceSizeStreamable
- Overrides:
serializedSize
in classRequestCorrelator.Header
-
toString
public java.lang.String toString()
- Overrides:
toString
in classRequestCorrelator.Header
-
-