| Package | Description |
|---|---|
| com.linecorp.armeria.client |
Client core.
|
| com.linecorp.armeria.common |
Common types.
|
| com.linecorp.armeria.common.logging | |
| com.linecorp.armeria.internal |
Various classes used internally.
|
| com.linecorp.armeria.internal.metric |
Various metrics related classes used internally.
|
| com.linecorp.armeria.server |
Server core.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ClientRequestContext
|
| Modifier and Type | Class and Description |
|---|---|
class |
ClientRequestContextWrapper
Wraps an existing
ClientRequestContext. |
class |
DefaultClientRequestContext
Default
ClientRequestContext implementation. |
| Modifier and Type | Method and Description |
|---|---|
static ClientConnectionTimings |
ClientConnectionTimings.get(RequestContext ctx)
Returns
ClientConnectionTimings from the specified RequestContext if exists. |
void |
ClientConnectionTimings.setTo(RequestContext ctx)
Sets this
ClientConnectionTimings to the specified RequestContext. |
| Modifier and Type | Class and Description |
|---|---|
class |
RequestContextWrapper<T extends RequestContext>
Wraps an existing
RequestContext. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractRequestContext
A skeletal
RequestContext implementation. |
class |
NonWrappingRequestContext
Default
RequestContext implementation. |
class |
RequestContextWrapper<T extends RequestContext>
Wraps an existing
RequestContext. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends RequestContext> |
RequestContext.current()
Returns the context of the
Request that is being handled in the current thread. |
static <T extends RequestContext> |
RequestContext.currentOrNull()
Returns the context of the
Request that is being handled in the current thread. |
| Modifier and Type | Method and Description |
|---|---|
RequestContext |
RequestContext.newDerivedContext(RequestId id,
HttpRequest req,
RpcRequest rpcReq)
Creates a new
RequestContext whose properties and Attributes are copied from this
RequestContext, except having a different pair of HttpRequest and RpcRequest
and its own RequestLog. |
| Modifier and Type | Method and Description |
|---|---|
void |
RequestContextWrapper.invokeOnChildCallbacks(RequestContext newCtx) |
void |
RequestContext.invokeOnChildCallbacks(RequestContext newCtx)
Invokes all
onChild(BiConsumer) callbacks. |
void |
NonWrappingRequestContext.invokeOnChildCallbacks(RequestContext newCtx) |
static SafeCloseable |
RequestContext.push(RequestContext ctx)
Deprecated.
Use
push(). |
static SafeCloseable |
RequestContext.push(RequestContext ctx,
boolean runCallbacks)
Deprecated.
Use
push(boolean). |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
RequestContext.mapCurrent(Function<? super RequestContext,T> mapper,
Supplier<T> defaultValueSupplier)
Maps the context of the
Request that is being handled in the current thread. |
void |
RequestContextWrapper.onChild(BiConsumer<? super RequestContext,? super RequestContext> callback) |
void |
RequestContextWrapper.onChild(BiConsumer<? super RequestContext,? super RequestContext> callback) |
void |
RequestContext.onChild(BiConsumer<? super RequestContext,? super RequestContext> callback)
Registers
callback to be run when this context is replaced by a child context. |
void |
RequestContext.onChild(BiConsumer<? super RequestContext,? super RequestContext> callback)
Registers
callback to be run when this context is replaced by a child context. |
void |
NonWrappingRequestContext.onChild(BiConsumer<? super RequestContext,? super RequestContext> callback) |
void |
NonWrappingRequestContext.onChild(BiConsumer<? super RequestContext,? super RequestContext> callback) |
void |
RequestContextWrapper.onEnter(Consumer<? super RequestContext> callback) |
void |
RequestContext.onEnter(Consumer<? super RequestContext> callback)
Registers
callback to be run when re-entering this RequestContext, usually when using
the makeContextAware(java.util.concurrent.Executor) family of methods. |
void |
NonWrappingRequestContext.onEnter(Consumer<? super RequestContext> callback) |
void |
RequestContextWrapper.onExit(Consumer<? super RequestContext> callback) |
void |
RequestContext.onExit(Consumer<? super RequestContext> callback)
Registers
callback to be run when re-exiting this RequestContext, usually when using
the makeContextAware(java.util.concurrent.Executor) family of methods. |
void |
NonWrappingRequestContext.onExit(Consumer<? super RequestContext> callback) |
| Modifier and Type | Method and Description |
|---|---|
RequestContext |
RequestLog.context()
Returns the
RequestContext associated with the Request being handled. |
RequestContext |
DefaultRequestLog.context() |
| Modifier and Type | Method and Description |
|---|---|
ContentPreviewer |
ContentPreviewerFactory.get(RequestContext ctx,
HttpHeaders headers)
|
| Constructor and Description |
|---|
DefaultRequestLog(RequestContext ctx)
Creates a new instance.
|
DefaultRequestLog(RequestContext ctx,
ContentPreviewerFactory requestContentPreviewerFactory,
ContentPreviewerFactory responseContentPreviewerFactory)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T> CompletableFuture<T> |
JavaVersionSpecific.newRequestContextAwareFuture(RequestContext ctx)
Returns a
CompletableFuture which executes all callbacks with the RequestContext. |
| Modifier and Type | Method and Description |
|---|---|
static void |
RequestMetricSupport.setup(RequestContext ctx,
MeterIdPrefixFunction meterIdPrefixFunction,
boolean server) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ServiceRequestContext
Provides information about an invocation and related utilities.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultServiceRequestContext
Default
ServiceRequestContext implementation. |
class |
ServiceRequestContextWrapper
Wraps an existing
ServiceRequestContext. |
Copyright © 2020 LeanCloud. All rights reserved.