ConcurrentChannelTrafficSnapshot

class ConcurrentChannelTrafficSnapshot<CP : ClientProt, Enum<CP>, SP : ServerProt, Enum<SP>, DC : Enum<DC>>(val startDateTime: LocalDateTime, val endDateTime: LocalDateTime, val activeConnectionsByAddress: Map<InetAddress, Int>, val inetAddressSnapshots: Map<InetAddress, InetAddressSnapshot<CP, SP, DC>>) : ChannelTrafficSnapshot

A concurrent channel traffic snapshot is the result of calling net.rsprot.protocol.metrics.channel.impl.ConcurrentChannelTrafficMonitor.snapshot. This snapshot will track any metrics behind a specific channel type (login, JS5, game), such as the number of active connections from each InetAddress at the time of capturing the snapshot, as well as a general overview of the traffic that a specific channel witnessed.

Constructors

Link copied to clipboard
constructor(startDateTime: LocalDateTime, endDateTime: LocalDateTime, activeConnectionsByAddress: Map<InetAddress, Int>, inetAddressSnapshots: Map<InetAddress, InetAddressSnapshot<CP, SP, DC>>)

Properties

Link copied to clipboard

the active connections at the time of capturing the snapshot, organized per InetAddress.

Link copied to clipboard

the duration that this snapshot covers.

Link copied to clipboard

the number of milliseconds that this snapshot covers.

Link copied to clipboard

the local datetime when the snapshot was captured.

Link copied to clipboard

the snapshots per InetAddress, containing any packet traffic, disconnection reasons and more.

Link copied to clipboard

the local datetime when the tracking began for this snapshot.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String