HONEYCOMB-58 - Routing Api
[honeycomb.git] / ioam / impl / src / main / java / io / fd / honeycomb / vppioam / impl / util / FutureJVppIoamCustomizer.java
1 /*
2  * Copyright (c) 2016 Cisco and/or its affiliates.
3  *
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:
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 package io.fd.honeycomb.vppioam.impl.util;
18
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;
23
24 /**
25  * Abstract utility to hold the IoamApi reference.
26  */
27 @Beta
28 public abstract class FutureJVppIoamCustomizer {
29
30     private final FutureJVppIoamtrace futureJVppIoam;
31
32     public FutureJVppIoamCustomizer(@Nonnull final FutureJVppIoamtrace futureJVppIoam) {
33         this.futureJVppIoam = Preconditions.checkNotNull(futureJVppIoam,
34                                   "futureJVppIoam should not be null");
35     }
36
37     /**
38      * Get IoamApi reference
39      *
40      * @return IoamApi reference
41      */
42     public FutureJVppIoamtrace getFutureJVppIoam() {
43         return futureJVppIoam;
44     }
45 }