blob: 6d00d65cd9004622ba842a5a17bcf80a6da18ccf [file] [log] [blame]
Jonathan Hart4f60f982014-10-27 08:11:17 -07001/*
2 * Copyright 2014 Open Networking Laboratory
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 */
16package org.onlab.onos.net.packet;
17
18import org.onlab.onos.store.Store;
19
20/**
21 * Manages routing of outbound packets.
22 */
23public interface PacketStore extends Store<PacketEvent, PacketStoreDelegate> {
24
25 /**
26 * Decides which instance should emit the packet and forwards the packet to
27 * that instance. The relevant PacketManager is notified via the
28 * PacketStoreDelegate that it should emit the packet.
29 *
30 * @param packet the packet to emit
31 */
32 void emit(OutboundPacket packet);
33
34}