2 * Copyright (c) 2016 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
8 package org.opendaylight.controller.cluster.access.client;
10 // Simple forwarder which just pushes the entry to the successor
11 final class SimpleReconnectForwarder extends ReconnectForwarder {
12 SimpleReconnectForwarder(final AbstractReceivingClientConnection<?> successor) {
17 protected void forwardEntry(final ConnectionEntry entry, final long now) {
18 successor().sendEntry(entry, now);
22 protected void replayEntry(final ConnectionEntry entry, final long now) {
23 // We are executing in the context of the client thread, do not block
24 successor().enqueueEntry(entry, now);