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.groupbasedpolicy.sxp.mapper.impl.util;
10 import com.google.common.util.concurrent.FutureCallback;
11 import javax.annotation.Nullable;
12 import org.slf4j.Logger;
13 import org.slf4j.LoggerFactory;
18 public final class L3EPServiceUtil {
20 private static final Logger LOG = LoggerFactory.getLogger(L3EPServiceUtil.class);
22 private L3EPServiceUtil() {
23 throw new IllegalAccessError("constructing util class");
26 public static <O> FutureCallback<O> createFailureLoggingCallback(final String failMessage) {
27 return new FutureCallback<O>() {
29 public void onSuccess(@Nullable final O result) {
34 public void onFailure(final Throwable t) {
35 LOG.warn(failMessage, t);