blob: 893b21d5f0ec586e4f73300531b51a2fc24aeef4 [file] [log] [blame]
slowr13fa5b02017-08-08 16:32:31 -07001/*
slowr577f3222017-08-28 10:49:08 -07002 * Copyright 2015-present Open Networking Foundation
slowr13fa5b02017-08-08 16:32:31 -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 */
16
17package org.onosproject.xran.controller;
18
19import io.netty.channel.ChannelHandlerContext;
slowr13fa5b02017-08-08 16:32:31 -070020import org.onosproject.xran.codecs.pdu.XrancPdu;
21
22import java.io.IOException;
23
slowr577f3222017-08-28 10:49:08 -070024/**
25 * Xran packet processor interface.
26 */
slowr13fa5b02017-08-08 16:32:31 -070027public interface XranPacketProcessor {
slowr577f3222017-08-28 10:49:08 -070028 /**
29 * Handle an incoming packet.
30 *
31 * @param pdu pdu of incoming packet
32 * @param ctx channel received the packet
33 * @throws IOException io exception
34 * @throws InterruptedException interrupted exception
35 */
slowrc86750e2017-08-22 17:26:47 -070036 void handlePacket(XrancPdu pdu, ChannelHandlerContext ctx) throws IOException, InterruptedException;
slowr13fa5b02017-08-08 16:32:31 -070037}