Class TokenSyncState
-
- 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 TokenSyncState extends SpecificRecordBase implements SpecificRecord
The current state of the token synchronization process
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
TokenSyncState.Builder
RecordBuilder for TokenSyncState instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public HoldingIdentity
holdingIdentity
public TokenSyncMode
mode
public TokenFullSyncState
fullSyncState
public List<TokenPoolPeriodicSyncState>
periodicSyncState
public Instant
nextWakeup
public int
transientFailureCount
-
Constructor Summary
Constructors Constructor Description TokenSyncState()
Default constructor. TokenSyncState(HoldingIdentity holdingIdentity, TokenSyncMode mode, TokenFullSyncState fullSyncState, List<TokenPoolPeriodicSyncState> periodicSyncState, Instant nextWakeup, Integer transientFailureCount)
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. TokenSyncMode
getMode()
Gets the value of the 'mode' field. void
setMode(TokenSyncMode value)
Sets the value of the 'mode' field. TokenFullSyncState
getFullSyncState()
Gets the value of the 'fullSyncState' field. void
setFullSyncState(TokenFullSyncState value)
Sets the value of the 'fullSyncState' field. List<TokenPoolPeriodicSyncState>
getPeriodicSyncState()
Gets the value of the 'periodicSyncState' field. void
setPeriodicSyncState(List<TokenPoolPeriodicSyncState> value)
Sets the value of the 'periodicSyncState' field. Instant
getNextWakeup()
Gets the value of the 'nextWakeup' field. void
setNextWakeup(Instant value)
Sets the value of the 'nextWakeup' field. int
getTransientFailureCount()
Gets the value of the 'transientFailureCount' field. void
setTransientFailureCount(int value)
Sets the value of the 'transientFailureCount' field. static Schema
getClassSchema()
static BinaryMessageEncoder<TokenSyncState>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<TokenSyncState>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<TokenSyncState>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this TokenSyncState to a ByteBuffer. static TokenSyncState
fromByteBuffer(ByteBuffer b)
Deserializes a TokenSyncState from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
Conversion<out Object>
getConversion(int field)
void
put(int field$, Object value$)
static TokenSyncState.Builder
newBuilder()
Creates a new TokenSyncState RecordBuilder. static TokenSyncState.Builder
newBuilder(TokenSyncState.Builder other)
Creates a new TokenSyncState RecordBuilder by copying an existing Builder. static TokenSyncState.Builder
newBuilder(TokenSyncState other)
Creates a new TokenSyncState RecordBuilder by copying an existing TokenSyncState 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
-
TokenSyncState
TokenSyncState()
Default constructor.
-
TokenSyncState
TokenSyncState(HoldingIdentity holdingIdentity, TokenSyncMode mode, TokenFullSyncState fullSyncState, List<TokenPoolPeriodicSyncState> periodicSyncState, Instant nextWakeup, Integer transientFailureCount)
All-args constructor.- Parameters:
holdingIdentity
- The holding identity of the user making the requestmode
- The current synchronization modefullSyncState
- The current state of a full syncperiodicSyncState
- The current state of a periodic syncnextWakeup
- Date and time the next wake-up is required.transientFailureCount
- The number of times a transient failure has occurred.
-
-
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.
-
getMode
TokenSyncMode getMode()
Gets the value of the 'mode' field.
-
setMode
void setMode(TokenSyncMode value)
Sets the value of the 'mode' field. The current synchronization mode
- Parameters:
value
- the value to set.
-
getFullSyncState
TokenFullSyncState getFullSyncState()
Gets the value of the 'fullSyncState' field.
-
setFullSyncState
void setFullSyncState(TokenFullSyncState value)
Sets the value of the 'fullSyncState' field. The current state of a full sync
- Parameters:
value
- the value to set.
-
getPeriodicSyncState
List<TokenPoolPeriodicSyncState> getPeriodicSyncState()
Gets the value of the 'periodicSyncState' field.
-
setPeriodicSyncState
void setPeriodicSyncState(List<TokenPoolPeriodicSyncState> value)
Sets the value of the 'periodicSyncState' field. The current state of a periodic sync
- Parameters:
value
- the value to set.
-
getNextWakeup
Instant getNextWakeup()
Gets the value of the 'nextWakeup' field.
-
setNextWakeup
void setNextWakeup(Instant value)
Sets the value of the 'nextWakeup' field. Date and time the next wake-up is required.
- Parameters:
value
- the value to set.
-
getTransientFailureCount
int getTransientFailureCount()
Gets the value of the 'transientFailureCount' field.
-
setTransientFailureCount
void setTransientFailureCount(int value)
Sets the value of the 'transientFailureCount' field. The number of times a transient failure has occurred.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<TokenSyncState> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<TokenSyncState> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<TokenSyncState> 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 TokenSyncState to a ByteBuffer.
-
fromByteBuffer
static TokenSyncState fromByteBuffer(ByteBuffer b)
Deserializes a TokenSyncState 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 TokenSyncState.Builder newBuilder()
Creates a new TokenSyncState RecordBuilder.
-
newBuilder
static TokenSyncState.Builder newBuilder(TokenSyncState.Builder other)
Creates a new TokenSyncState RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static TokenSyncState.Builder newBuilder(TokenSyncState other)
Creates a new TokenSyncState RecordBuilder by copying an existing TokenSyncState instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
-
-
-