BUG-5280: introduce request/response Envelope
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / CommitLocalTransactionRequest.java
index 97381cc267722dbd8afecd80865054d4de32dd3f..1f739515c99c6f0c6eb1c4e960a97ebc4f3b113f 100644 (file)
@@ -27,26 +27,13 @@ public final class CommitLocalTransactionRequest extends AbstractLocalTransactio
     private final DataTreeModification mod;
     private final boolean coordinated;
 
-    public CommitLocalTransactionRequest(final @Nonnull TransactionIdentifier identifier, final long sequence,
+    public CommitLocalTransactionRequest(final @Nonnull TransactionIdentifier identifier,
             final @Nonnull ActorRef replyTo, final @Nonnull DataTreeModification mod, final boolean coordinated) {
-        this(identifier, sequence, 0, replyTo, mod, coordinated);
-    }
-
-    CommitLocalTransactionRequest(final @Nonnull TransactionIdentifier identifier, final long sequence,
-            final long retry, final @Nonnull ActorRef replyTo, final @Nonnull DataTreeModification mod,
-            final boolean coordinated) {
-        super(identifier, sequence, retry, replyTo);
+        super(identifier, replyTo);
         this.mod = Preconditions.checkNotNull(mod);
         this.coordinated = coordinated;
     }
 
-
-    private CommitLocalTransactionRequest(final CommitLocalTransactionRequest request, final long retry) {
-        super(request, retry);
-        this.mod = request.mod;
-        this.coordinated = request.coordinated;
-    }
-
     public DataTreeModification getModification() {
         return mod;
     }
@@ -67,9 +54,4 @@ public final class CommitLocalTransactionRequest extends AbstractLocalTransactio
     protected ToStringHelper addToStringAttributes(final ToStringHelper toStringHelper) {
         return super.addToStringAttributes(toStringHelper).add("coordinated", coordinated);
     }
-
-    @Override
-    protected CommitLocalTransactionRequest cloneAsRetry(final long retry) {
-        return new CommitLocalTransactionRequest(this, retry);
-    }
 }
\ No newline at end of file