X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=mdsal.git;a=blobdiff_plain;f=dom%2Fmdsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fdom%2Fapi%2FDOMActionImplementation.java;fp=dom%2Fmdsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fmdsal%2Fdom%2Fapi%2FDOMActionImplementation.java;h=d2876c05f7d7c75b1e35603ae5ac7d45a01764f9;hp=568f424eee0d1eb4571f5eaae4fcea6fecb33afb;hb=c4c661935cadfa9edfd2dcdd582aed34318c3c6d;hpb=f89acf0957d2966481c477f2d421c26efbe58658 diff --git a/dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/DOMActionImplementation.java b/dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/DOMActionImplementation.java index 568f424eee..d2876c05f7 100644 --- a/dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/DOMActionImplementation.java +++ b/dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/DOMActionImplementation.java @@ -7,7 +7,6 @@ */ package org.opendaylight.mdsal.dom.api; -import com.google.common.annotations.Beta; import com.google.common.util.concurrent.ListenableFuture; import org.eclipse.jdt.annotation.NonNullByDefault; import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode; @@ -17,13 +16,10 @@ import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absol /** * Interface implemented by an individual operation implementation. This API allows for dispatch implementations, e.g. * an individual object handling a multitude of operations. - * - * @author Robert Varga */ -@Beta @FunctionalInterface @NonNullByDefault -public interface DOMActionImplementation { +public non-sealed interface DOMActionImplementation extends DOMOperationImplementation { /** * Initiate invocation of the action. Implementations of this method are expected to not block. * @@ -31,18 +27,9 @@ public interface DOMActionImplementation { * instantiated on top of the conceptual {@link StoreTreeNode}. * @param path {@link DOMDataTreeIdentifier} of parent data node which action attached to. * @param input Input arguments - * @return A FluentFuture which completes with the result of invocation + * @return A {@link ListenableFuture} which completes with the result of invocation * @throws NullPointerException if any of the arguments is null */ - ListenableFuture invokeAction(Absolute type, DOMDataTreeIdentifier path, - ContainerNode input); - - /** - * Return the relative invocation cost of this implementation. Default implementation returns 0. - * - * @return Non-negative cost of invoking this implementation. - */ - default long invocationCost() { - return 0; - } + ListenableFuture invokeAction(Absolute type, DOMDataTreeIdentifier path, + ContainerNode input); }