blob: a67d70269f9beac397271791480fe0080378e2be [file] [log] [blame]
Jonathan Hart4f60f982014-10-27 08:11:17 -07001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2014-present Open Networking Laboratory
Jonathan Hart4f60f982014-10-27 08:11:17 -07003 *
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 */
Brian O'Connorabafb502014-12-02 22:26:20 -080016package org.onosproject.net.packet;
Jonathan Hart4f60f982014-10-27 08:11:17 -070017
Brian O'Connorabafb502014-12-02 22:26:20 -080018import org.onosproject.store.StoreDelegate;
Jonathan Hart4f60f982014-10-27 08:11:17 -070019
20/**
21 * Packet store delegate abstraction.
22 */
23public interface PacketStoreDelegate extends StoreDelegate<PacketEvent> {
Brian O'Connor21b028e2015-10-08 22:50:02 -070024
25 /**
26 * Requests that packets matching to following request be collected
27 * from all switches.
28 *
29 * @param request packet request
30 */
31 void requestPackets(PacketRequest request);
32
33 /**
34 * Requests that packets matching to following request no longer be
35 * collected from any switches.
36 *
37 * @param request packet request
38 */
39 void cancelPackets(PacketRequest request);
Jonathan Hart4f60f982014-10-27 08:11:17 -070040}