2 * Copyright (c) 2016 Ericsson India Global Services Pvt Ltd. 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.netvirt.neutronvpn.api.l2gw;
10 import java.util.Collection;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.eclipse.jdt.annotation.Nullable;
14 public interface L2GatewayCache {
16 L2GatewayDevice addOrGet(@NonNull String deviceName);
19 L2GatewayDevice remove(String deviceName);
22 L2GatewayDevice get(String deviceName);
25 Collection<L2GatewayDevice> getAll();