public final class InvokerUtils extends Object
| Constructor and Description |
|---|
InvokerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Response |
innerSyncInvoke(Invocation invocation)
This is an internal API, caller make sure already invoked SCBEngine.ensureStatusUp
|
static CompletableFuture<Response> |
invoke(Invocation invocation)
This method is used in new Filter implementation to replace Handler
NOTE: this method should never throw exception directly
|
static boolean |
isAsyncMethod(Method method) |
static boolean |
isInEventLoop() |
static boolean |
isSyncMethod(Method method) |
static void |
reactiveInvoke(Invocation invocation,
AsyncResponse asyncResp)
This is an internal API, caller make sure already invoked SCBEngine.ensureStatusUp
|
static void |
reactiveInvoke(String microserviceName,
String schemaId,
String operationId,
Map<String,Object> swaggerArguments,
Type responseType,
AsyncResponse asyncResp) |
static void |
reactiveInvoke(String microserviceName,
String microserviceVersion,
String transport,
String schemaId,
String operationId,
Map<String,Object> swaggerArguments,
Type responseType,
AsyncResponse asyncResp) |
static Object |
syncInvoke(Invocation invocation)
This is an internal API, caller make sure already invoked SCBEngine.ensureStatusUp
|
static Object |
syncInvoke(String microserviceName,
String schemaId,
String operationId,
Map<String,Object> swaggerArguments)
Deprecated.
|
static <T> T |
syncInvoke(String microserviceName,
String schemaId,
String operationId,
Map<String,Object> swaggerArguments,
Type responseType) |
static Object |
syncInvoke(String microserviceName,
String microserviceVersion,
String transport,
String schemaId,
String operationId,
Map<String,Object> swaggerArguments)
Deprecated.
|
static <T> T |
syncInvoke(String microserviceName,
String microserviceVersion,
String transport,
String schemaId,
String operationId,
Map<String,Object> swaggerArguments,
Type responseType) |
public static <T> T syncInvoke(String microserviceName, String microserviceVersion, String transport, String schemaId, String operationId, Map<String,Object> swaggerArguments, Type responseType)
public static void reactiveInvoke(String microserviceName, String microserviceVersion, String transport, String schemaId, String operationId, Map<String,Object> swaggerArguments, Type responseType, AsyncResponse asyncResp)
public static <T> T syncInvoke(String microserviceName, String schemaId, String operationId, Map<String,Object> swaggerArguments, Type responseType)
public static void reactiveInvoke(String microserviceName, String schemaId, String operationId, Map<String,Object> swaggerArguments, Type responseType, AsyncResponse asyncResp)
@Deprecated public static Object syncInvoke(String microserviceName, String schemaId, String operationId, Map<String,Object> swaggerArguments)
syncInvoke(String, String, String, Map, Type) instead.@Deprecated public static Object syncInvoke(String microserviceName, String microserviceVersion, String transport, String schemaId, String operationId, Map<String,Object> swaggerArguments)
syncInvoke(String, String, String, String, String, Map, Type) instead.public static Object syncInvoke(Invocation invocation) throws InvocationException
InvocationExceptionpublic static boolean isInEventLoop()
public static Response innerSyncInvoke(Invocation invocation)
public static void reactiveInvoke(Invocation invocation, AsyncResponse asyncResp)
public static CompletableFuture<Response> invoke(Invocation invocation)
Copyright © 2017–2022 The Apache Software Foundation. All rights reserved.