public interface NetworkStatsListener<N extends NetworkContext>
extends net.openhft.chronicle.core.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
networkContext(N networkContext) |
static void |
notifyHostPort(SocketChannel sc,
NetworkStatsListener 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) |
void |
onRoundTripLatency(long nanosecondLatency) |
void networkContext(N networkContext)
void onNetworkStats(long writeBps,
long readBps,
long socketPollCountPerSecond)
void onHostPort(String hostName, int port)
void onRoundTripLatency(long nanosecondLatency)
static void notifyHostPort(@Nullable
SocketChannel sc,
@NotNull
NetworkStatsListener nl)
sc - SocketChannelnl - NetworkStatsListenerCopyright © 2017. All rights reserved.