public enum InflightController extends java.lang.Enum<InflightController>
Keeps track of all requests that came through HTTP and potentially others Requests are checked in / out and a warning is issued if threshold is passed used in HttpListener.handlerUUID
Modifier and Type | Class and Description |
---|---|
class |
InflightController.InflightInfo
Class to track requests while they are running
|
Enum Constant and Description |
---|
INSTANCE
Singleton
|
Modifier and Type | Method and Description |
---|---|
InflightController |
checkIn(java.lang.String uuid,
java.time.Instant startMoment,
java.lang.String method,
java.lang.String absoluteUri)
Checks in a request for tracking of duration and success
|
InflightController |
checkOut(java.lang.String uuid,
java.time.Instant stopMoment,
java.lang.String absoluteUri,
java.lang.String operationId,
int status,
boolean callSuccess)
Records the completion of a request to the log, capturing key parameters
|
long |
count() |
void |
dump(java.io.PrintStream out,
boolean reportIfNothingHappened)
Dumps a list of the current running inflight requestss to be visible Allows “empty” request notification appear 10 times less than actual values
|
io.vertx.core.json.JsonArray |
dumpToJsonArray() |
static InflightController |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InflightController[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InflightController INSTANCE
public static InflightController[] values()
for (InflightController c : InflightController.values()) System.out.println(c);
public static InflightController valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic InflightController checkIn(java.lang.String uuid, java.time.Instant startMoment, java.lang.String method, java.lang.String absoluteUri)
Checks in a request for tracking of duration and success
uuid
- startMoment
- method
- absoluteUri
- public InflightController checkOut(java.lang.String uuid, java.time.Instant stopMoment, java.lang.String absoluteUri, java.lang.String operationId, int status, boolean callSuccess)
Records the completion of a request to the log, capturing key parameters
uuid
- stopMoment
- absoluteUri
- operationId
- status
- callSuccess
- public long count()
public void dump(java.io.PrintStream out, boolean reportIfNothingHappened)
Dumps a list of the current running inflight requestss to be visible Allows “empty” request notification appear 10 times less than actual values
out
- reportIfNothingHappened
- public io.vertx.core.json.JsonArray dumpToJsonArray()