mirror of https://github.com/apache/kafka.git
BatchingStateRestoreCallback's default implemeantion of restore() lead to waraning `FunctionalInterfaceMethodChanged`. Reviewers: Lucas Brutschy <lbrutschy@confluent.io>, PoAn Yang <payang@apache.org>, Ken Huang <s7133700@gmail.com>, TengYao Chi <frankvicky@apache.org>
This commit is contained in:
parent
f69337b37c
commit
bc7e57242d
|
@ -28,11 +28,10 @@ import java.util.Collection;
|
||||||
* It is expected that implementations of this class will not call the {@link StateRestoreCallback#restore(byte[],
|
* It is expected that implementations of this class will not call the {@link StateRestoreCallback#restore(byte[],
|
||||||
* byte[])} method.
|
* byte[])} method.
|
||||||
*/
|
*/
|
||||||
@FunctionalInterface
|
|
||||||
public interface BatchingStateRestoreCallback extends StateRestoreCallback {
|
public interface BatchingStateRestoreCallback extends StateRestoreCallback {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Called to restore a number of records. This method is called repeatedly until the {@link StateStore} is fulled
|
* Called to restore a number of records. This method is called repeatedly until the {@link StateStore} is fully
|
||||||
* restored.
|
* restored.
|
||||||
*
|
*
|
||||||
* @param records the records to restore.
|
* @param records the records to restore.
|
||||||
|
|
Loading…
Reference in New Issue