37ddb9e7e7391e0e163f477b7b85cee34b498310
[controller.git] / opendaylight / md-sal / cds-access-api / src / main / java / org / opendaylight / controller / cluster / access / commands / AbortLocalTransactionRequest.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.cluster.access.commands;
9
10 import akka.actor.ActorRef;
11 import java.io.Serial;
12 import org.eclipse.jdt.annotation.NonNull;
13 import org.opendaylight.controller.cluster.access.concepts.TransactionIdentifier;
14
15 /**
16  * Request to abort a local transaction. Since local transactions do not introduce state on the backend until they
17  * are ready, the purpose of this message is to inform the backend that a message identifier has been used. This is
18  * not important for single transactions, but is critical to ensure transaction ordering within local histories.
19  */
20 public final class AbortLocalTransactionRequest extends AbstractLocalTransactionRequest<AbortLocalTransactionRequest> {
21     @Serial
22     private static final long serialVersionUID = 1L;
23
24     public AbortLocalTransactionRequest(final @NonNull TransactionIdentifier identifier,
25             final @NonNull ActorRef replyTo) {
26         super(identifier, 0, replyTo);
27     }
28 }