2 * Copyright © 2017 AT&T and others. All rights reserved.
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
8 package org.opendaylight.transportpce.renderer.provisiondevice.tasks;
10 import java.util.concurrent.Callable;
12 public abstract class RollbackTask implements Callable<Void> {
14 private final String id;
16 public RollbackTask(String id) {
20 public String getId() {
25 public boolean equals(Object object) {
29 if ((object == null) || (getClass() != object.getClass())) {
32 RollbackTask that = (RollbackTask) object;
33 return this.id.equals(that.id);
37 public int hashCode() {
38 return this.id.hashCode();
41 public abstract boolean isRollbackNecessary();