- private String clientPayloadClassName;
-
- public String getClientPayloadClassName() {
- return this.getClass().getName();
- }
-
- public void setClientPayloadClassName(String clientPayloadClassName) {
- this.clientPayloadClassName = clientPayloadClassName;
- }
-
- /**
- * Encode the payload data as a protocol buffer extension.
- * <p>
- * TODO: Add more meat in here
- * @param <T>
- * @return Map of <GeneratedMessage.GeneratedExtension, T>
- */
- public abstract <T extends Object> Map<GeneratedMessage.GeneratedExtension, T> encode();
-
- /**
- * Decode the protocol buffer payload into a specific Payload as defined
- * by the class extending RaftActor
- *
- * @param payload The payload in protocol buffer format
- * @return
- */
- public abstract Payload decode(
- AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload payload);
-