public class Invocation extends SwaggerInvocation
| Modifier and Type | Field and Description |
|---|---|
protected static AtomicLong |
INVOCATION_ID |
protected ReferenceConfig |
referenceConfig |
invocationType, parentContextcontext, httpStatus, localContext, transportContext| Constructor and Description |
|---|
Invocation() |
Invocation(Endpoint endpoint,
OperationMeta operationMeta,
Map<String,Object> swaggerArguments) |
Invocation(ReferenceConfig referenceConfig,
OperationMeta operationMeta,
InvocationRuntimeType invocationRuntimeType,
Map<String,Object> swaggerArguments) |
getInvocationType, getParentContextaddContext, addContext, addContext, addLocalContext, addLocalContext, getContext, getContext, getLocalContext, getLocalContext, getStatus, getTransportContext, mergeContext, mergeContext, setContext, setLocalContext, setStatus, setStatus, setStatus, setTransportContextprotected static final AtomicLong INVOCATION_ID
protected ReferenceConfig referenceConfig
public Invocation()
public Invocation(ReferenceConfig referenceConfig, OperationMeta operationMeta, InvocationRuntimeType invocationRuntimeType, Map<String,Object> swaggerArguments)
public Invocation(Endpoint endpoint, OperationMeta operationMeta, Map<String,Object> swaggerArguments)
public Transport getTransport()
public Executor getResponseExecutor()
public void setResponseExecutor(Executor responseExecutor)
public SchemaMeta getSchemaMeta()
public OperationMeta getOperationMeta()
public Object[] toProducerArguments()
public Endpoint getEndpoint()
public void setEndpoint(Endpoint endpoint)
public int getHandlerIndex()
public void setHandlerIndex(int handlerIndex)
public void next(AsyncResponse asyncResp) throws Exception
Exceptionpublic String getSchemaId()
public String getOperationName()
public String getConfigTransportName()
public String getRealTransportName()
public String getMicroserviceName()
public String getAppId()
public MicroserviceMeta getMicroserviceMeta()
public String getMicroserviceVersionRule()
public InvocationRuntimeType getInvocationRuntimeType()
public com.fasterxml.jackson.databind.JavaType findResponseType(int statusCode)
public void setSuccessResponseType(com.fasterxml.jackson.databind.JavaType javaType)
public String getInvocationQualifiedName()
getInvocationQualifiedName in class SwaggerInvocationpublic String getMicroserviceQualifiedName()
protected void initTraceId()
protected void initTraceId(TraceIdGenerator traceIdGenerator)
public void onStart(long start)
public void onStart(HttpServletRequestEx requestEx, long start)
public void onExecuteStart()
public void onExecuteFinish()
public void onStartHandlersRequest()
public void onStartSendRequest()
public void onBusinessMethodStart()
onBusinessMethodStart in class SwaggerInvocationpublic void onBusinessMethodFinish()
onBusinessMethodFinish in class SwaggerInvocationpublic void onEncodeResponseStart(Response response)
public void onBusinessFinish()
onBusinessFinish in class SwaggerInvocationpublic void onFinish(Response response)
public void reset()
public boolean isFinished()
public boolean isSync()
public void setSync(boolean sync)
public boolean isConsumer()
public boolean isProducer()
public boolean isEdge()
public void setEdge(boolean edge)
public boolean isThirdPartyInvocation()
public long getInvocationId()
public TraceIdLogger getTraceIdLogger()
public HttpServletRequestEx getRequestEx()
public InvocationStageTrace getInvocationStageTrace()
public String getTraceId()
public <T> CompletableFuture<T> optimizeSyncConsumerThread(CompletableFuture<T> future)
public void ensureInvocationNotTimeout()
throws InvocationException
InvocationException - if timeout, throw an exception. Will not throw exception twice if this method called
after timeout.Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.