2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.controller.cluster.datastore;
11 import akka.actor.ActorPath;
12 import org.opendaylight.yangtools.concepts.ListenerRegistration;
15 * ListenerRegistrationProxy acts as a proxy for a ListenerRegistration that was done on a remote shard
17 * Registering a DataChangeListener on the Data Store creates a new instance of the ListenerRegistrationProxy
18 * The ListenerRegistrationProxy talks to a remote ListenerRegistration actor.
20 public class ListenerRegistrationProxy implements ListenerRegistration {
21 private final ActorPath listenerRegistrationPath;
23 public ListenerRegistrationProxy(ActorPath listenerRegistrationPath) {
25 this.listenerRegistrationPath = listenerRegistrationPath;
29 public Object getInstance() {
30 throw new UnsupportedOperationException("getInstance");
35 throw new UnsupportedOperationException("close");