Class TokenFullSyncState.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class TokenFullSyncState.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for TokenFullSyncState instances.
-
-
Field Summary
Fields Modifier and Type Field Description public Instant
startedTimestamp
public Instant
lastBlockCompletedTimestamp
public int
blocksCompleted
public int
recordsCompleted
public Instant
nextBlockStartOffset
-
Method Summary
Modifier and Type Method Description Instant
getStartedTimestamp()
Gets the value of the 'startedTimestamp' field. TokenFullSyncState.Builder
setStartedTimestamp(Instant value)
Sets the value of the 'startedTimestamp' field. Instant
getLastBlockCompletedTimestamp()
Gets the value of the 'lastBlockCompletedTimestamp' field. TokenFullSyncState.Builder
setLastBlockCompletedTimestamp(Instant value)
Sets the value of the 'lastBlockCompletedTimestamp' field. int
getBlocksCompleted()
Gets the value of the 'blocksCompleted' field. TokenFullSyncState.Builder
setBlocksCompleted(int value)
Sets the value of the 'blocksCompleted' field. int
getRecordsCompleted()
Gets the value of the 'recordsCompleted' field. TokenFullSyncState.Builder
setRecordsCompleted(int value)
Sets the value of the 'recordsCompleted' field. Instant
getNextBlockStartOffset()
Gets the value of the 'nextBlockStartOffset' field. TokenFullSyncState.Builder
setNextBlockStartOffset(Instant value)
Sets the value of the 'nextBlockStartOffset' field. boolean
hasStartedTimestamp()
Checks whether the 'startedTimestamp' field has been set. TokenFullSyncState.Builder
clearStartedTimestamp()
Clears the value of the 'startedTimestamp' field. boolean
hasLastBlockCompletedTimestamp()
Checks whether the 'lastBlockCompletedTimestamp' field has been set. TokenFullSyncState.Builder
clearLastBlockCompletedTimestamp()
Clears the value of the 'lastBlockCompletedTimestamp' field. boolean
hasBlocksCompleted()
Checks whether the 'blocksCompleted' field has been set. TokenFullSyncState.Builder
clearBlocksCompleted()
Clears the value of the 'blocksCompleted' field. boolean
hasRecordsCompleted()
Checks whether the 'recordsCompleted' field has been set. TokenFullSyncState.Builder
clearRecordsCompleted()
Clears the value of the 'recordsCompleted' field. boolean
hasNextBlockStartOffset()
Checks whether the 'nextBlockStartOffset' field has been set. TokenFullSyncState.Builder
clearNextBlockStartOffset()
Clears the value of the 'nextBlockStartOffset' field. TokenFullSyncState
build()
-
-
Method Detail
-
getStartedTimestamp
Instant getStartedTimestamp()
Gets the value of the 'startedTimestamp' field. The date and time the last full synchronization completed.
-
setStartedTimestamp
TokenFullSyncState.Builder setStartedTimestamp(Instant value)
Sets the value of the 'startedTimestamp' field. The date and time the last full synchronization completed.
- Parameters:
value
- The value of 'startedTimestamp'.
-
getLastBlockCompletedTimestamp
Instant getLastBlockCompletedTimestamp()
Gets the value of the 'lastBlockCompletedTimestamp' field. The date and time the last full synchronization completed.
-
setLastBlockCompletedTimestamp
TokenFullSyncState.Builder setLastBlockCompletedTimestamp(Instant value)
Sets the value of the 'lastBlockCompletedTimestamp' field. The date and time the last full synchronization completed.
- Parameters:
value
- The value of 'lastBlockCompletedTimestamp'.
-
getBlocksCompleted
int getBlocksCompleted()
Gets the value of the 'blocksCompleted' field. The number of blocks completed
-
setBlocksCompleted
TokenFullSyncState.Builder setBlocksCompleted(int value)
Sets the value of the 'blocksCompleted' field. The number of blocks completed
- Parameters:
value
- The value of 'blocksCompleted'.
-
getRecordsCompleted
int getRecordsCompleted()
Gets the value of the 'recordsCompleted' field. The number of records completed
-
setRecordsCompleted
TokenFullSyncState.Builder setRecordsCompleted(int value)
Sets the value of the 'recordsCompleted' field. The number of records completed
- Parameters:
value
- The value of 'recordsCompleted'.
-
getNextBlockStartOffset
Instant getNextBlockStartOffset()
Gets the value of the 'nextBlockStartOffset' field. The (inclusive) timestamp to start reading the next block of records
-
setNextBlockStartOffset
TokenFullSyncState.Builder setNextBlockStartOffset(Instant value)
Sets the value of the 'nextBlockStartOffset' field. The (inclusive) timestamp to start reading the next block of records
- Parameters:
value
- The value of 'nextBlockStartOffset'.
-
hasStartedTimestamp
boolean hasStartedTimestamp()
Checks whether the 'startedTimestamp' field has been set. The date and time the last full synchronization completed.
-
clearStartedTimestamp
TokenFullSyncState.Builder clearStartedTimestamp()
Clears the value of the 'startedTimestamp' field. The date and time the last full synchronization completed.
-
hasLastBlockCompletedTimestamp
boolean hasLastBlockCompletedTimestamp()
Checks whether the 'lastBlockCompletedTimestamp' field has been set. The date and time the last full synchronization completed.
-
clearLastBlockCompletedTimestamp
TokenFullSyncState.Builder clearLastBlockCompletedTimestamp()
Clears the value of the 'lastBlockCompletedTimestamp' field. The date and time the last full synchronization completed.
-
hasBlocksCompleted
boolean hasBlocksCompleted()
Checks whether the 'blocksCompleted' field has been set. The number of blocks completed
-
clearBlocksCompleted
TokenFullSyncState.Builder clearBlocksCompleted()
Clears the value of the 'blocksCompleted' field. The number of blocks completed
-
hasRecordsCompleted
boolean hasRecordsCompleted()
Checks whether the 'recordsCompleted' field has been set. The number of records completed
-
clearRecordsCompleted
TokenFullSyncState.Builder clearRecordsCompleted()
Clears the value of the 'recordsCompleted' field. The number of records completed
-
hasNextBlockStartOffset
boolean hasNextBlockStartOffset()
Checks whether the 'nextBlockStartOffset' field has been set. The (inclusive) timestamp to start reading the next block of records
-
clearNextBlockStartOffset
TokenFullSyncState.Builder clearNextBlockStartOffset()
Clears the value of the 'nextBlockStartOffset' field. The (inclusive) timestamp to start reading the next block of records
-
build
TokenFullSyncState build()
-
-
-
-