2 * Copyright (c) 2015 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
9 package org.opendaylight.openflowplugin.api.openflow.registry.flow;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.FlowId;
16 * Created by Martin Bobak <mbobak@cisco.com> on 8.4.2015.
18 public interface DeviceFlowRegistry extends AutoCloseable {
20 FlowDescriptor retrieveIdForFlow(FlowRegistryKey flowRegistryKey);
22 void store(FlowRegistryKey flowRegistryKey, FlowDescriptor flowDescriptor);
24 FlowId storeIfNecessary(FlowRegistryKey flowRegistryKey, short tableId);
26 void markToBeremoved(FlowRegistryKey flowRegistryKey);
30 Map<FlowRegistryKey, FlowDescriptor> getAllFlowDescriptors();