<packaging>bundle</packaging>
<dependencies>
- <dependency>
- <groupId>org.opendaylight.mdsal</groupId>
- <artifactId>mdsal-eos-common-api</artifactId>
- </dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>util</artifactId>
</dependency>
- <dependency>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>yang-common</artifactId>
- </dependency>
+
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>mockito-configuration</artifactId>
--- /dev/null
+/*
+ * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+module org.opendaylight.mdsal.singleton.common.api {
+ exports org.opendaylight.mdsal.singleton.common.api;
+
+ requires transitive org.opendaylight.yangtools.concepts;
+ requires org.opendaylight.yangtools.util;
+
+ // Annotations
+ requires static transitive org.eclipse.jdt.annotation;
+}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.mdsal.singleton.common.api;
import com.google.common.util.concurrent.ListenableFuture;
* @return a ListenableFuture that is completed when the underlying instance close operation is complete.
*/
ListenableFuture<? extends Object> closeServiceInstance();
-
}
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
-
package org.opendaylight.mdsal.singleton.common.api;
/**
* a service group candidate must hold ownership of both these entities.
*/
public interface ClusterSingletonServiceProvider extends AutoCloseable {
-
/**
* Method registers {@link ClusterSingletonService} to Provider.
* Method returns {@link java.lang.RuntimeException} for unexpected state, so be careful with implementation.
* @return {@link AutoCloseable} registration
*/
ClusterSingletonServiceRegistration registerClusterSingletonService(ClusterSingletonService service);
-
}