*/
package org.opendaylight.controller.cluster.raft.persisted;
+import akka.dispatch.ControlMessage;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
*
* @author Thomas Pantelis
*/
-public class ApplyJournalEntries implements Serializable, MigratedSerializable {
+public class ApplyJournalEntries implements Serializable, MigratedSerializable, ControlMessage {
private static final class Proxy implements Externalizable {
private static final long serialVersionUID = 1L;
private ApplyJournalEntries applyEntries;
+ // checkstyle flags the public modifier as redundant which really doesn't make sense since it clearly isn't
+ // redundant. It is explicitly needed for Java serialization to be able to create instances via reflection.
+ @SuppressWarnings("checkstyle:RedundantModifier")
public Proxy() {
// For Externalizable
}
@Override
public void writeExternal(final ObjectOutput out) throws IOException {
out.writeLong(applyEntries.toIndex);
- }
+ }
@Override
public void readExternal(final ObjectInput in) throws IOException, ClassNotFoundException {