public interface NetworkStatsListener<N extends NetworkContext<N>>
extends net.openhft.chronicle.core.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
networkContext(N networkContext) |
static <N extends NetworkContext<N>> |
notifyHostPort(@Nullable ChronicleSocketChannel sc,
@Nullable NetworkStatsListener<N> nl)
notifies the NetworkStatsListener of the host and port based on the SocketChannel
|
void |
onHostPort(String hostName,
int port) |
void |
onNetworkStats(long writeBps,
long readBps,
long socketPollCountPerSecond)
Called periodically (see tcp.event.monitor.secs system property) with summary network stats
|
default void |
onReceiveLatency(long nanosecondLatency)
Notification of individual message one way trip latency (requires sender's clock to be synchronised with receiver's)
|
void |
onRoundTripLatency(long nanosecondLatency)
Notification of individual round trip latency, called only if acknowledge enabled
|
default void |
procPrefix(String procPrefix) |
static <N extends NetworkContext<N>> void notifyHostPort(@Nullable @Nullable ChronicleSocketChannel sc, @Nullable @Nullable NetworkStatsListener<N> nl)
sc - SocketChannelnl - NetworkStatsListenervoid networkContext(N networkContext)
void onNetworkStats(long writeBps,
long readBps,
long socketPollCountPerSecond)
writeBps - write Bytes/secreadBps - read Bytes/secsocketPollCountPerSecond - socket poll count/secvoid onHostPort(String hostName, int port)
void onRoundTripLatency(long nanosecondLatency)
nanosecondLatency - latencydefault void procPrefix(String procPrefix)
default void onReceiveLatency(long nanosecondLatency)
nanosecondLatency - latencyCopyright © 2023. All rights reserved.