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_listContains 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 interfaceshortgetMagicId()Returns the magic-ID.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.-
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:HeaderReturns the magic-ID. If defined in jg-magic-map.xml, the IDs need to be the same- Overrides:
getMagicIdin classRequestCorrelator.Header
-
create
public java.util.function.Supplier<? extends Header> create()
Description copied from interface:ConstructableCreates an instance of the class implementing this interface- Specified by:
createin interfaceConstructable<Header>- Overrides:
createin classRequestCorrelator.Header
-
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- Specified by:
writeToin interfaceStreamable- Overrides:
writeToin classRequestCorrelator.Header- Throws:
java.io.IOException
-
readFrom
public void readFrom(java.io.DataInput in) throws java.io.IOException, java.lang.ClassNotFoundExceptionDescription copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Overrides:
readFromin classRequestCorrelator.Header- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
serializedSize
public int serializedSize()
Description copied from interface:SizeStreamableReturns the size (in bytes) of the marshalled object- Specified by:
serializedSizein interfaceSizeStreamable- Overrides:
serializedSizein classRequestCorrelator.Header
-
toString
public java.lang.String toString()
- Overrides:
toStringin classRequestCorrelator.Header
-
-