2 * Copyright (c) 2015 Brocade Communications 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
8 package org.opendaylight.controller.cluster;
10 import akka.actor.ActorSystem;
11 import java.util.EventListener;
14 * Listener interface for notification of ActorSystem changes from an ActorSystemProvider.
16 * @author Thomas Pantelis
18 public interface ActorSystemProviderListener extends EventListener {
20 * Method called when the current actor system is about to be shutdown.
22 void onPreShutdownActorSystem();
25 * Method called when the current actor system is shutdown and a new actor system is created. This method
26 * is always preceded by a call to {@link #onPreShutdownActorSystem}.
28 * @param actorSytem the new ActorSystem
30 void onNewActorSystem(ActorSystem actorSytem);