*/
package org.opendaylight.controller.cluster.access.commands;
-import java.io.DataInput;
-import java.io.IOException;
import org.opendaylight.controller.cluster.access.concepts.AbstractRequestFailureProxy;
import org.opendaylight.controller.cluster.access.concepts.LocalHistoryIdentifier;
-import org.opendaylight.controller.cluster.access.concepts.RequestException;
/**
* Externalizable proxy for use with {@link LocalHistoryFailure}. It implements the initial (Boron) serialization
*
* @author Robert Varga
*/
-final class LocalHistoryFailureProxyV1 extends
- AbstractRequestFailureProxy<LocalHistoryIdentifier, LocalHistoryFailure> {
+final class LocalHistoryFailureProxyV1
+ extends AbstractRequestFailureProxy<LocalHistoryIdentifier, LocalHistoryFailure>
+ implements LocalHistoryFailure.SerialForm {
+ @java.io.Serial
private static final long serialVersionUID = 1L;
// checkstyle flags the public modifier as redundant however it is explicitly needed for Java serialization to
LocalHistoryFailureProxyV1(final LocalHistoryFailure failure) {
super(failure);
}
-
- @Override
- protected LocalHistoryFailure createFailure(final LocalHistoryIdentifier target, final long sequence,
- final RequestException cause) {
- return new LocalHistoryFailure(target, sequence, cause);
- }
-
- @Override
- protected LocalHistoryIdentifier readTarget(final DataInput in) throws IOException {
- return LocalHistoryIdentifier.readFrom(in);
- }
}