Remove deprecated Helium Payload methods
[controller.git] / opendaylight / md-sal / sal-clustering-commons / src / main / java / org / opendaylight / controller / cluster / raft / protobuff / client / messages / Payload.java
index d721494e15fcde76eb9b4f4e4f42a8e3e41bdd87..bd48f1fd0d9900dbad8a350e8c61a1a6fafd19da 100644 (file)
@@ -9,9 +9,6 @@
 package org.opendaylight.controller.cluster.raft.protobuff.client.messages;
 
 
-import com.google.protobuf.GeneratedMessage;
-import java.util.Map;
-import org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntriesMessages;
 
 /**
  * An instance of a Payload class is meant to be used as the Payload for
@@ -22,60 +19,7 @@ import org.opendaylight.controller.protobuff.messages.cluster.raft.AppendEntries
  * must pass an instance of the Payload class. Similarly when state needs to
  * be applied to the derived RaftActor it will be passed an instance of the
  * Payload class.
- * <p>
- *
- * To define your own payload do the following,
- * <ol>
- *     <li>Create your own protocol buffer message which extends the AppendEntries Payload</li>
- *     <li>Extend this Payload class</li>
- *     <li>Implement encode</li>
- *     <li>Implement decode</li>
- * </ol>
- *
- * Your own protocol buffer message can be create like so, <br/>
- * <pre>
- * {@code
- *
- * import "AppendEntriesMessages.proto";
- *
- * package org.opendaylight.controller.cluster.raft;
- *
- * option java_package = "org.opendaylight.controller.cluster.raft.protobuff.messages";
- * option java_outer_classname = "MockPayloadMessages";
- *
- * extend AppendEntries.ReplicatedLogEntry.Payload {
- *      optional string value = 2;
- * }
- * }
- * </pre>
- *
  */
 public abstract class Payload {
-
-    public String getClientPayloadClassName() {
-        return this.getClass().getName();
-    }
-
-    /**
-     * Encode the payload data as a protocol buffer extension.
-     * <p>
-     * TODO: Add more meat in here
-     * @param <T>
-     * @return Map of <GeneratedMessage.GeneratedExtension, T>
-     */
-    @Deprecated
-    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
-     */
-    @Deprecated
-    public abstract Payload decode(
-        AppendEntriesMessages.AppendEntries.ReplicatedLogEntry.Payload payload);
-
     public abstract int size();
 }