summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/fs4/PacketListener.java
blob: a876caf9699cee829ea30e7bc83b7527e685590f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.fs4;

import java.nio.ByteBuffer;

import com.yahoo.fs4.mplex.FS4Channel;

/**
 * Interface for recieving notifications of packets sent or recieved.
 *
 * @author tonytv
 */
public interface PacketListener {
    void packetSent(FS4Channel channel, BasicPacket packet, ByteBuffer serializedForm);
    void packetReceived(FS4Channel channel, BasicPacket packet, ByteBuffer serializedForm);
}