X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Feos-dom-akka%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Feos%2Fakka%2Fregistry%2Flistener%2Fowner%2Fcommand%2FOwnerChanged.java;fp=opendaylight%2Fmd-sal%2Feos-dom-akka%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Feos%2Fakka%2Fregistry%2Flistener%2Fowner%2Fcommand%2FOwnerChanged.java;h=4e1298ab3d4bb4a767e32f00f3ac19be3a4d0f69;hb=e1e6d8e34fd4c5c5c07c7a8063ffa94a8dbe2062;hp=0000000000000000000000000000000000000000;hpb=a99e29aa039032ca57f7945d75e6950716ed9ae7;p=controller.git diff --git a/opendaylight/md-sal/eos-dom-akka/src/main/java/org/opendaylight/controller/eos/akka/registry/listener/owner/command/OwnerChanged.java b/opendaylight/md-sal/eos-dom-akka/src/main/java/org/opendaylight/controller/eos/akka/registry/listener/owner/command/OwnerChanged.java new file mode 100644 index 0000000000..4e1298ab3d --- /dev/null +++ b/opendaylight/md-sal/eos-dom-akka/src/main/java/org/opendaylight/controller/eos/akka/registry/listener/owner/command/OwnerChanged.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2021 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 + */ +package org.opendaylight.controller.eos.akka.registry.listener.owner.command; + +import static java.util.Objects.requireNonNull; + +import akka.cluster.ddata.LWWRegister; +import akka.cluster.ddata.typed.javadsl.Replicator.SubscribeResponse; +import org.eclipse.jdt.annotation.NonNull; + +/** + * Notification from distributed-data sent to the SingleEntityListenerActor when owner changes for the tracked entity. + */ +public final class OwnerChanged extends ListenerCommand { + private final @NonNull SubscribeResponse> response; + + public OwnerChanged(final SubscribeResponse> response) { + this.response = requireNonNull(response); + } + + public @NonNull SubscribeResponse> getResponse() { + return response; + } +}