Cleanup use of Guava Function
[openflowplugin.git] / applications / forwardingrules-sync / src / main / java / org / opendaylight / openflowplugin / applications / frsync / ForwardingRulesRemoveCommitter.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
9 package org.opendaylight.openflowplugin.applications.frsync;
10
11 import java.util.concurrent.Future;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowCapableNode;
13 import org.opendaylight.yangtools.yang.binding.DataObject;
14 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
15 import org.opendaylight.yangtools.yang.common.RpcResult;
16
17 /**
18  * Represents a configuration item remove-contract for device.
19  */
20 public interface ForwardingRulesRemoveCommitter<D extends DataObject, R extends DataObject> {
21
22     /**
23      * Method removes DataObject which is identified by InstanceIdentifier
24      * from device.
25      *
26      * @param identifier - the whole path to DataObject
27      * @param del        - DataObject for removing
28      * @param nodeIdent  - Node InstanceIdentifier
29      * @return RpcResult of action
30      */
31     Future<RpcResult<R>> remove(InstanceIdentifier<D> identifier, D del, InstanceIdentifier<FlowCapableNode> nodeIdent);
32
33 }