965df4a6bee31cb186cb34e40e2bf763d543b742
[genius.git] / mdsalutil / mdsalutil-api / src / main / java / org / opendaylight / genius / utils / batching / ActionableResource.java
1 /*
2  * Copyright (c) 2015 - 2016 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 package org.opendaylight.genius.utils.batching;
9
10 import com.google.common.util.concurrent.ListenableFuture;
11 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
12
13 public interface ActionableResource {
14
15     short CREATE = 1;
16     short UPDATE = 2;
17     short DELETE = 3;
18     short READ = 4;
19     // MDSAL-534 Merge,Put with no create_missing_parents flag
20     short UPDATECONTAINER = 5;
21
22     InstanceIdentifier<?> getInstanceIdentifier();
23
24     Object getInstance();
25
26     Object getOldInstance();
27
28     short getAction();
29
30     ListenableFuture<Void> getResultFuture();
31 }