Class TokenSyncEvent
-
- 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 TokenSyncEvent extends SpecificRecordBase implements SpecificRecord
Represents an inbound token sync event
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
TokenSyncEvent.Builder
RecordBuilder for TokenSyncEvent instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public HoldingIdentity
holdingIdentity
public Object
payload
-
Constructor Summary
Constructors Constructor Description TokenSyncEvent()
Default constructor. TokenSyncEvent(HoldingIdentity holdingIdentity, Object payload)
All-args constructor.
-
Method Summary
Modifier and Type Method Description HoldingIdentity
getHoldingIdentity()
Gets the value of the 'holdingIdentity' field. void
setHoldingIdentity(HoldingIdentity value)
Sets the value of the 'holdingIdentity' field. Object
getPayload()
Gets the value of the 'payload' field. void
setPayload(Object value)
Sets the value of the 'payload' field. static Schema
getClassSchema()
static BinaryMessageEncoder<TokenSyncEvent>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<TokenSyncEvent>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<TokenSyncEvent>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this TokenSyncEvent to a ByteBuffer. static TokenSyncEvent
fromByteBuffer(ByteBuffer b)
Deserializes a TokenSyncEvent from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static TokenSyncEvent.Builder
newBuilder()
Creates a new TokenSyncEvent RecordBuilder. static TokenSyncEvent.Builder
newBuilder(TokenSyncEvent.Builder other)
Creates a new TokenSyncEvent RecordBuilder by copying an existing Builder. static TokenSyncEvent.Builder
newBuilder(TokenSyncEvent other)
Creates a new TokenSyncEvent RecordBuilder by copying an existing TokenSyncEvent instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, customDecode, customEncode, equals, getConversion, 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
-
TokenSyncEvent
TokenSyncEvent()
Default constructor.
-
TokenSyncEvent
TokenSyncEvent(HoldingIdentity holdingIdentity, Object payload)
All-args constructor.- Parameters:
holdingIdentity
- The holding identity of the user making the requestpayload
- Represents the specific type and data of inbound event
-
-
Method Detail
-
getHoldingIdentity
HoldingIdentity getHoldingIdentity()
Gets the value of the 'holdingIdentity' field.
-
setHoldingIdentity
void setHoldingIdentity(HoldingIdentity value)
Sets the value of the 'holdingIdentity' field. The holding identity of the user making the request
- Parameters:
value
- the value to set.
-
getPayload
Object getPayload()
Gets the value of the 'payload' field.
-
setPayload
void setPayload(Object value)
Sets the value of the 'payload' field. Represents the specific type and data of inbound event
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<TokenSyncEvent> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<TokenSyncEvent> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<TokenSyncEvent> 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 TokenSyncEvent to a ByteBuffer.
-
fromByteBuffer
static TokenSyncEvent fromByteBuffer(ByteBuffer b)
Deserializes a TokenSyncEvent from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static TokenSyncEvent.Builder newBuilder()
Creates a new TokenSyncEvent RecordBuilder.
-
newBuilder
static TokenSyncEvent.Builder newBuilder(TokenSyncEvent.Builder other)
Creates a new TokenSyncEvent RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static TokenSyncEvent.Builder newBuilder(TokenSyncEvent other)
Creates a new TokenSyncEvent RecordBuilder by copying an existing TokenSyncEvent instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-