New Package dealing with device rollback
[transportpce.git] / renderer / src / main / java / org / opendaylight / transportpce / renderer / provisiondevice / transaction / Transaction.java
1 /*
2  * Copyright © 2024 Smartoptics 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
9 package org.opendaylight.transportpce.renderer.provisiondevice.transaction;
10
11 import org.opendaylight.transportpce.renderer.provisiondevice.transaction.delete.Delete;
12
13 /**
14  * Any class wishing to keep track of transactions
15  * may implement this interface.
16  */
17 public interface Transaction {
18
19     /**
20      * Rollback this transaction.
21      */
22     boolean rollback(Delete delete);
23
24     String description();
25
26     int hashCode();
27
28     boolean equals(Object object);
29 }