public class ConnectTimings extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
record(com.couchbase.client.core.deps.io.netty.channel.Channel channel,
Class<?> clazz)
Convenience method to record a single timing right away.
|
static void |
start(com.couchbase.client.core.deps.io.netty.channel.Channel channel,
Class<?> clazz)
Start the connect timings for a given class and channel.
|
static Optional<Duration> |
stop(com.couchbase.client.core.deps.io.netty.channel.Channel channel,
Class<?> clazz,
boolean timeout)
Stops the timing.
|
static SortedMap<String,Duration> |
toMap(com.couchbase.client.core.deps.io.netty.channel.Channel channel) |
static String |
toString(com.couchbase.client.core.deps.io.netty.channel.Channel channel)
Exports the timings into a string.
|
public static void start(com.couchbase.client.core.deps.io.netty.channel.Channel channel,
Class<?> clazz)
channel - the channel to start from.clazz - the clazz to use as an identifier key.public static Optional<Duration> stop(com.couchbase.client.core.deps.io.netty.channel.Channel channel, Class<?> clazz, boolean timeout)
channel - the channel to start from.clazz - the clazz to use as an identifier key.timeout - if stopped because of a timeout or not.public static void record(com.couchbase.client.core.deps.io.netty.channel.Channel channel,
Class<?> clazz)
channel - the channel to start from.clazz - the clazz to use as an identifier key.public static String toString(com.couchbase.client.core.deps.io.netty.channel.Channel channel)
channel - which channel to export.Copyright © 2021 Couchbase, Inc.. All rights reserved.