EndpointStats

How much a CoapEndpoint holds at the moment CoapEndpoint.stats was called, for gauges in metrics and for diagnostics; set each against the bound of CoapEndpointConfig it names. Every value is a count of what is held now, not of what happened: count what happened from EndpointEvents, such as EndpointEvent.RequestCompleted and EndpointEvent.LimitReached.

Reading costs no lock: each layer writes its counts as it changes them, so CoapEndpoint.stats can be called from any thread at any rate, and two values may be from moments a few messages apart.

Properties

Link copied to clipboard

the connections open (RFC 8323), opened or accepted, the CSM exchanged or not; at most ReliableTransportConfig.maxConnections accepted ones.

Link copied to clipboard

the received messages remembered for deduplication (RFC 7252 §4.5), at most CoapEndpointConfig.maxDeduplicationEntries. 0 without a datagram transport.

Link copied to clipboard

the client exchanges open: requests waiting for a response, observations, and the requests of Q-Block bodies; bounded by CoapEndpointConfig.maxExchanges.

Link copied to clipboard

the Message IDs reserved towards any peer (RFC 7252 §4.4), at most CoapEndpointConfig.maxReservedMessageIds. 0 without a datagram transport.

Link copied to clipboard

the request handlers running now, at most CoapEndpointConfig.maxConcurrentRequests.

Link copied to clipboard

the messages the datagram messaging layer keeps (RFC 7252 §4): Confirmable ones until they are acknowledged or given up, those queued behind NSTART, and Non-confirmable ones for NON_LIFETIME so a Reset still matches; bounded by CoapEndpointConfig.maxExchanges. 0 without a datagram transport.

Functions

Link copied to clipboard
open override fun toString(): String