@FunctionalInterface
public interface DataPacketHandler
Modifier and Type | Method and Description |
---|---|
int |
onDataPacket(ReceiveChannelEndpoint channelEndpoint,
io.aeron.protocol.DataHeaderFlyweight header,
org.agrona.concurrent.UnsafeBuffer buffer,
int length,
java.net.InetSocketAddress srcAddress)
Handle a Data Frame from the network.
|
int onDataPacket(ReceiveChannelEndpoint channelEndpoint, io.aeron.protocol.DataHeaderFlyweight header, org.agrona.concurrent.UnsafeBuffer buffer, int length, java.net.InetSocketAddress srcAddress)
channelEndpoint
- from which the data is delivered.header
- of the first Data Frame in the packet (may be re-wrapped if needed)buffer
- holding the data (always starts at 0 offset)length
- of the packet (may be longer than the header frame length)srcAddress
- of the packetCopyright © 2014 - 2016 Real Logic Ltd. All Rights Reserved.