Rename DOMDataTreeChangeService
[mdsal.git] / replicate / mdsal-replicate-netty / src / main / java / org / opendaylight / mdsal / replicate / netty / SourceSingletonService.java
index d707fd1407e42f21f8791cefaf77d89c7d9c79cf..22cc0c95f811d55a31538a4b6cd6a297abb9de02 100644 (file)
@@ -26,7 +26,7 @@ import java.util.HashSet;
 import java.util.List;
 import java.util.concurrent.TimeUnit;
 import org.checkerframework.checker.lock.qual.GuardedBy;
-import org.opendaylight.mdsal.dom.api.DOMDataTreeChangeService;
+import org.opendaylight.mdsal.dom.api.DOMDataBroker.DataTreeChangeExtension;
 import org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService;
 import org.opendaylight.mdsal.singleton.common.api.ServiceGroupIdentifier;
 import org.opendaylight.yangtools.yang.data.codec.binfmt.NormalizedNodeStreamVersion;
@@ -40,10 +40,10 @@ import org.slf4j.LoggerFactory;
 final class SourceSingletonService extends ChannelInitializer<SocketChannel> implements ClusterSingletonService {
     private static final Logger LOG = LoggerFactory.getLogger(SourceSingletonService.class);
     private static final ServiceGroupIdentifier SGID =
-            ServiceGroupIdentifier.create(SourceSingletonService.class.getName());
+        new ServiceGroupIdentifier(SourceSingletonService.class.getName());
 
     private final BootstrapSupport bootstrapSupport;
-    private final DOMDataTreeChangeService dtcs;
+    private final DataTreeChangeExtension dtcs;
     private final int listenPort;
 
     @GuardedBy("this")
@@ -53,7 +53,7 @@ final class SourceSingletonService extends ChannelInitializer<SocketChannel> imp
     @GuardedBy("this")
     private Channel serverChannel;
 
-    SourceSingletonService(final BootstrapSupport bootstrapSupport, final DOMDataTreeChangeService dtcs,
+    SourceSingletonService(final BootstrapSupport bootstrapSupport, final DataTreeChangeExtension dtcs,
             final int listenPort, final Duration keepaliveInterval, final int maxMissedKeepalives) {
         this.bootstrapSupport = requireNonNull(bootstrapSupport);
         this.dtcs = requireNonNull(dtcs);