@Internal @ParametersAreNonnullByDefault public interface InstrumentationListenerManager
Modifier and Type | Method and Description |
---|---|
void |
addRequestListener(com.atlassian.instrumentation.caches.RequestListener listener)
Add a listener
|
void |
applyToAllListeners(java.util.function.Consumer<com.atlassian.instrumentation.caches.RequestListener> apply)
Apply function to each listener.
|
Optional<String> |
getCurrentPath() |
Optional<String> |
getCurrentTraceId() |
Optional<RequestData> |
getRequestData() |
void |
processOnEndListeners(RequestData requestData,
Optional<Long> requestTime)
Runs all the registered RequestListeners at the end of the
Request processing.
|
void |
processOnStartListeners()
Runs all the registered RequestListeners at the beginning of the Request processing.
|
void |
removeRequestListener(com.atlassian.instrumentation.caches.RequestListener listener)
Remove a listener.
|
void processOnStartListeners()
void processOnEndListeners(RequestData requestData, Optional<Long> requestTime)
requestData
- The request pathrequestTime
- An @{link Optional} that may contain the request time.void addRequestListener(com.atlassian.instrumentation.caches.RequestListener listener)
listener
- The listener to add.void removeRequestListener(com.atlassian.instrumentation.caches.RequestListener listener)
listener
- The listener to remove.void applyToAllListeners(java.util.function.Consumer<com.atlassian.instrumentation.caches.RequestListener> apply)
apply
- Run a function on each listener.@Nonnull Optional<String> getCurrentPath()
@Nonnull Optional<String> getCurrentTraceId()
@Nonnull Optional<RequestData> getRequestData()
Copyright © 2002-2023 Atlassian. All Rights Reserved.