X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-common-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fcommon%2Fapi%2Frouting%2FRoutedRegistration.java;h=7b1cdeae9f7dbc707b6b4aafe60cb02a773c7ca3;hp=6ce7b5a5c7f990360ff1d5cb3d01e63989fc42da;hb=fc5234235d2eec5d79fff466fe0c07a8259e1c3f;hpb=1c79202684429691381362a27303514f8d2cb59f diff --git a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/routing/RoutedRegistration.java b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/routing/RoutedRegistration.java index 6ce7b5a5c7..7b1cdeae9f 100644 --- a/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/routing/RoutedRegistration.java +++ b/opendaylight/md-sal/sal-common-api/src/main/java/org/opendaylight/controller/md/sal/common/api/routing/RoutedRegistration.java @@ -10,9 +10,31 @@ package org.opendaylight.controller.md.sal.common.api.routing; import org.opendaylight.yangtools.concepts.Path; import org.opendaylight.yangtools.concepts.Registration; -public interface RoutedRegistration, S> extends Registration { +/** + * Base interface for a routed RPC RPC implementation registration. + * + * @param the context type used for routing + * @param

the path identifier type + * @param the RPC implementation type + */ +public interface RoutedRegistration, S> extends Registration { + /** + * Registers the RPC implementation associated with this registration for the given path + * identifier and context. + * + * @param context the context used for routing RPCs to this implementation. + * @param path the path identifier for which to register. + */ void registerPath(C context, P path); + + /** + * Unregisters the RPC implementation associated with this registration for the given path + * identifier and context. + * + * @param context the context used for routing RPCs to this implementation. + * @param path the path identifier for which to unregister. + */ void unregisterPath(C context, P path); @Override