Working with OVS
[vpnservice.git] / mdsalutil / mdsalutil-api / src / main / java / org / opendaylight / vpnservice / datastoreutils / RollbackCallable.java
1 /*
2  * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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.vpnservice.datastoreutils;
10
11 import com.google.common.util.concurrent.ListenableFuture;
12
13 import java.util.List;
14 import java.util.concurrent.Callable;
15
16 public abstract class RollbackCallable implements Callable<List<ListenableFuture<Void>>> {
17
18     private List<ListenableFuture<Void>> futures;
19
20     public RollbackCallable() {
21     }
22
23     public List<ListenableFuture<Void>> getFutures() {
24         return futures;
25     }
26
27     public void setFutures(List<ListenableFuture<Void>> futures) {
28         this.futures = futures;
29     }
30 }