71f35fc0fb2d24e47ad99a14829de109c71568dd
[netvirt.git] / neutronvpn / api / src / main / java / org / opendaylight / netvirt / neutronvpn / api / l2gw / L2GatewayCache.java
1 /*
2  * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.netvirt.neutronvpn.api.l2gw;
9
10 import java.util.Collection;
11 import javax.annotation.Nonnull;
12 import javax.annotation.Nullable;
13
14 public interface L2GatewayCache {
15     @Nonnull
16     L2GatewayDevice addOrGet(@Nonnull String deviceName);
17
18     @Nullable
19     L2GatewayDevice remove(String deviceName);
20
21     @Nullable
22     L2GatewayDevice get(String deviceName);
23
24     @Nonnull
25     Collection<L2GatewayDevice> getAll();
26 }