public class ResponseTimeCollector extends Object
startCollecting()
method, to stop recording, the stopCollecting(). This will associate the time collection for the current
thread with the current instance.| Constructor and Description |
|---|
ResponseTimeCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
captureTx(String txName,
Instant start,
Duration duration)
Caputes a completed transaction that has been manually recorded.
|
void |
captureTx(String txName,
Instant start,
Instant end)
Captures a completed transaction that has been manually recorded.
|
static Optional<ResponseTimeCollector> |
current() |
void |
startCollecting()
Starts the recording of response times for the current thread.
|
void |
startTx(String tx)
Starts a new transaction time recording
|
void |
stopCollecting()
Stops the recoding of the response times for the current thread.
|
void |
stopTx(String tx)
Stops the recording of a transaction time, storing the transaction in the global response time store
|
void |
stopTx(String tx,
Instant now)
Stops the transaction at the specific time point
|
public static Optional<ResponseTimeCollector> current()
public void startCollecting()
public void stopCollecting()
public void captureTx(String txName, Instant start, Instant end)
txName - the name of the transactionstart - the start pointend - the end pointpublic void captureTx(String txName, Instant start, Duration duration)
txName - the name of the transactionstart - the start pointduration - the duration of the executionpublic void startTx(String tx)
tx - the name of the transactionpublic void stopTx(String tx)
tx - the transaction that has been completdCopyright © 2016 DevCon5 GmbH. All rights reserved.