2 * Copyright (c) 2016 Cisco and/or its affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package io.fd.honeycomb.vppioam.impl.util;
19 import com.google.common.annotations.Beta;
20 import com.google.common.base.Preconditions;
21 import io.fd.vpp.jvpp.ioamtrace.future.FutureJVppIoamtrace;
22 import javax.annotation.Nonnull;
25 * Abstract utility to hold the IoamApi reference.
28 public abstract class FutureJVppIoamCustomizer {
30 private final FutureJVppIoamtrace futureJVppIoam;
32 public FutureJVppIoamCustomizer(@Nonnull final FutureJVppIoamtrace futureJVppIoam) {
33 this.futureJVppIoam = Preconditions.checkNotNull(futureJVppIoam,
34 "futureJVppIoam should not be null");
38 * Get IoamApi reference
40 * @return IoamApi reference
42 public FutureJVppIoamtrace getFutureJVppIoam() {
43 return futureJVppIoam;