Class MembershipResponseContext
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class MembershipResponseContext extends SpecificRecordBase implements SpecificRecord
Context for a membership persistence response
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
MembershipResponseContext.Builder
RecordBuilder for MembershipResponseContext instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public Instant
requestTimestamp
public String
requestId
public Instant
responseTimestamp
public HoldingIdentity
holdingIdentity
-
Constructor Summary
Constructors Constructor Description MembershipResponseContext()
Default constructor. MembershipResponseContext(Instant requestTimestamp, String requestId, Instant responseTimestamp, HoldingIdentity holdingIdentity)
All-args constructor.
-
Method Summary
Modifier and Type Method Description Instant
getRequestTimestamp()
Gets the value of the 'requestTimestamp' field. void
setRequestTimestamp(Instant value)
Sets the value of the 'requestTimestamp' field. String
getRequestId()
Gets the value of the 'requestId' field. void
setRequestId(String value)
Sets the value of the 'requestId' field. Instant
getResponseTimestamp()
Gets the value of the 'responseTimestamp' field. void
setResponseTimestamp(Instant value)
Sets the value of the 'responseTimestamp' field. HoldingIdentity
getHoldingIdentity()
Gets the value of the 'holdingIdentity' field. void
setHoldingIdentity(HoldingIdentity value)
Sets the value of the 'holdingIdentity' field. static Schema
getClassSchema()
static BinaryMessageEncoder<MembershipResponseContext>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<MembershipResponseContext>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<MembershipResponseContext>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this MembershipResponseContext to a ByteBuffer. static MembershipResponseContext
fromByteBuffer(ByteBuffer b)
Deserializes a MembershipResponseContext from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
Conversion<out Object>
getConversion(int field)
void
put(int field$, Object value$)
static MembershipResponseContext.Builder
newBuilder()
Creates a new MembershipResponseContext RecordBuilder. static MembershipResponseContext.Builder
newBuilder(MembershipResponseContext.Builder other)
Creates a new MembershipResponseContext RecordBuilder by copying an existing Builder. static MembershipResponseContext.Builder
newBuilder(MembershipResponseContext other)
Creates a new MembershipResponseContext RecordBuilder by copying an existing MembershipResponseContext instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MembershipResponseContext
MembershipResponseContext()
Default constructor.
-
MembershipResponseContext
MembershipResponseContext(Instant requestTimestamp, String requestId, Instant responseTimestamp, HoldingIdentity holdingIdentity)
All-args constructor.- Parameters:
requestTimestamp
- Time ([Instant]) in milliseconds of the request, copied from the corresponding request.requestId
- Request id which can be used to track the request progress.responseTimestamp
- Time ([Instant]) in milliseconds of the response.holdingIdentity
- Holding identity of the member for which the request was made.
-
-
Method Detail
-
getRequestTimestamp
Instant getRequestTimestamp()
Gets the value of the 'requestTimestamp' field.
-
setRequestTimestamp
void setRequestTimestamp(Instant value)
Sets the value of the 'requestTimestamp' field. Time ([Instant]) in milliseconds of the request, copied from the corresponding request.
- Parameters:
value
- the value to set.
-
getRequestId
String getRequestId()
Gets the value of the 'requestId' field.
-
setRequestId
void setRequestId(String value)
Sets the value of the 'requestId' field. Request id which can be used to track the request progress.
- Parameters:
value
- the value to set.
-
getResponseTimestamp
Instant getResponseTimestamp()
Gets the value of the 'responseTimestamp' field.
-
setResponseTimestamp
void setResponseTimestamp(Instant value)
Sets the value of the 'responseTimestamp' field. Time ([Instant]) in milliseconds of the response.
- Parameters:
value
- the value to set.
-
getHoldingIdentity
HoldingIdentity getHoldingIdentity()
Gets the value of the 'holdingIdentity' field.
-
setHoldingIdentity
void setHoldingIdentity(HoldingIdentity value)
Sets the value of the 'holdingIdentity' field. Holding identity of the member for which the request was made.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<MembershipResponseContext> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<MembershipResponseContext> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<MembershipResponseContext> createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
- Parameters:
resolver
- a SchemaStore used to find schemas by fingerprint
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this MembershipResponseContext to a ByteBuffer.
-
fromByteBuffer
static MembershipResponseContext fromByteBuffer(ByteBuffer b)
Deserializes a MembershipResponseContext from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
getConversion
Conversion<out Object> getConversion(int field)
-
newBuilder
static MembershipResponseContext.Builder newBuilder()
Creates a new MembershipResponseContext RecordBuilder.
-
newBuilder
static MembershipResponseContext.Builder newBuilder(MembershipResponseContext.Builder other)
Creates a new MembershipResponseContext RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static MembershipResponseContext.Builder newBuilder(MembershipResponseContext other)
Creates a new MembershipResponseContext RecordBuilder by copying an existing MembershipResponseContext instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-