public class DefaultMicaContext extends Object implements IMicaContext
| Constructor and Description |
|---|
DefaultMicaContext() |
| Modifier and Type | Method and Description |
|---|---|
String |
get(String ctxKey)
获取上下文中的数据
|
<T> T |
get(String ctxKey,
Function<String,T> function)
获取上下文中的数据
|
String |
getAccountId()
账号id
|
String |
getRequestId()
获取 请求 id
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTenantId, getVersionpublic String getRequestId()
IMicaContextgetRequestId in interface IMicaContextpublic String getAccountId()
IMicaContextgetAccountId in interface IMicaContextpublic String get(String ctxKey)
IMicaContextget in interface IMicaContextctxKey - 上下文中的keypublic <T> T get(String ctxKey, Function<String,T> function)
IMicaContextget in interface IMicaContextT - 泛型对象ctxKey - 上下文中的keyfunction - 函数式Copyright © 2024. All rights reserved.