Fix modernization issues
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / RegisterDataTreeNotificationListenerReply.java
1 /*
2  * Copyright (c) 2017 Inocybe Technologies and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.cluster.datastore.messages;
9
10 import static java.util.Objects.requireNonNull;
11
12 import akka.actor.ActorPath;
13 import akka.actor.ActorRef;
14 import java.io.Serializable;
15
16 /**
17  * Successful reply to a notification listener registration request.
18  *
19  * @author Thomas Pantelis
20  */
21 public class RegisterDataTreeNotificationListenerReply implements Serializable {
22     private static final long serialVersionUID = 1L;
23
24     private final ActorRef listenerRegistrationPath;
25
26     public RegisterDataTreeNotificationListenerReply(final ActorRef listenerRegistrationPath) {
27         this.listenerRegistrationPath = requireNonNull(listenerRegistrationPath);
28     }
29
30     public ActorPath getListenerRegistrationPath() {
31         return listenerRegistrationPath.path();
32     }
33 }