Interface BatchingStateRestoreCallback
-
- All Superinterfaces:
StateRestoreCallback
public interface BatchingStateRestoreCallback extends StateRestoreCallback
Interface for batching restoration of aStateStoreIt is expected that implementations of this class will not call theStateRestoreCallback.restore(byte[], byte[])method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidrestore(byte[] key, byte[] value)voidrestoreAll(Collection<KeyValue<byte[],byte[]>> records)Called to restore a number of records.
-
-
-
Method Detail
-
restoreAll
void restoreAll(Collection<KeyValue<byte[],byte[]>> records)
Called to restore a number of records. This method is called repeatedly until theStateStoreis fulled restored.- Parameters:
records- the records to restore.
-
restore
default void restore(byte[] key, byte[] value)- Specified by:
restorein interfaceStateRestoreCallback
-
-