public enum LoggingNetworkStatsListener extends Enum<LoggingNetworkStatsListener> implements NetworkStatsListener
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
isClosed() |
void |
networkContext(NetworkContext networkContext) |
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
|
void |
onRoundTripLatency(long latencyNanos)
Notification of individual round trip latency, called only if acknowledge enabled
|
static LoggingNetworkStatsListener |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoggingNetworkStatsListener[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfnotifyHostPort, onReceiveLatency, procPrefixpublic static final LoggingNetworkStatsListener INSTANCE
public static LoggingNetworkStatsListener[] values()
for (LoggingNetworkStatsListener c : LoggingNetworkStatsListener.values()) System.out.println(c);
public static LoggingNetworkStatsListener valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void networkContext(NetworkContext networkContext)
networkContext in interface NetworkStatsListenerpublic void onNetworkStats(long writeBps,
long readBps,
long socketPollCountPerSecond)
NetworkStatsListeneronNetworkStats in interface NetworkStatsListenerwriteBps - write Bytes/secreadBps - read Bytes/secsocketPollCountPerSecond - socket poll count/secpublic void onHostPort(String hostName, int port)
onHostPort in interface NetworkStatsListenerpublic void onRoundTripLatency(long latencyNanos)
NetworkStatsListeneronRoundTripLatency in interface NetworkStatsListenerlatencyNanos - latencypublic void close()
close in interface Closeableclose in interface AutoCloseablepublic boolean isClosed()
isClosed in interface net.openhft.chronicle.core.io.QueryCloseableCopyright © 2023. All rights reserved.