BUG-8494: do not attempt to reconnect ReconnectingClientConnection
[controller.git] / opendaylight / md-sal / cds-access-client / src / main / java / org / opendaylight / controller / cluster / access / client / RecoveredClientActorBehavior.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. 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.access.client;
9
10 /**
11  * Abstract base class for a behavior whose actor has recovered from persistence.
12  *
13  * @param <C> Concrete context type
14  *
15  * @author Robert Varga
16  */
17 abstract class RecoveredClientActorBehavior<C extends AbstractClientActorContext>
18         extends AbstractClientActorBehavior<C> {
19
20     RecoveredClientActorBehavior(final C context) {
21         super(context);
22     }
23
24     @Override
25     final AbstractClientActorBehavior<?> onReceiveRecover(Object recover) {
26         throw new IllegalStateException("Frontend has been recovered");
27     }
28 }