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.raft;
10 import akka.japi.Procedure;
13 * An akka Procedure that does nothing.
15 * @author Thomas Pantelis
17 * @param <T> the Procedure type
19 public class NoopProcedure<T> implements Procedure<T> {
21 private static final NoopProcedure<Object> INSTANCE = new NoopProcedure<>();
23 private NoopProcedure() {
26 @SuppressWarnings("unchecked")
27 public static <T> NoopProcedure<T> instance() {
28 return (NoopProcedure<T>) INSTANCE;
32 public void apply(Object notUsed) {