@FunctionalInterface public interface LossGenerator
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldDropFrame(InetSocketAddress address,
UnsafeBuffer buffer,
int length)
Should a frame be dropped?
|
boolean shouldDropFrame(InetSocketAddress address, UnsafeBuffer buffer, int length)
address - The source address of the frame if inbound or the remote address if outbound.buffer - The buffer containing the frame data.length - The length of the frame.Copyright © 2014-2020 Real Logic Limited. All Rights Reserved.