public class DefaultMessageManager extends Object implements MessageManager
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultMessageManager.Context |
| Constructor and Description |
|---|
DefaultMessageManager(CallstackQueue callstackQueue,
RequestIdAndRpcIdFactory requestIdAndRpcIdFactory,
ConfigManger configManger) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNonTransaction(Message message) |
void |
endTransaction(Transaction transaction) |
TraceContext |
exportContext() |
String |
getClientAppId() |
ConfigManger |
getConfigManager() |
protected DefaultMessageManager.Context |
getContext() |
String |
getCurrentRequestId() |
String |
getCurrentRpcIdAndCurrentCall()
Deprecated.
|
String |
getRpcId() |
boolean |
hasContext() |
boolean |
hasTransaction() |
void |
importContext(TraceContext ctx) |
boolean |
isImportContext() |
String |
nextLocalRpcId() |
String |
nextLocalThreadId() |
String |
nextRemoteRpcId() |
void |
removeContext() |
void |
reset() |
void |
setup() |
void |
setup(String requestId,
String rpcId) |
boolean |
shouldLog(Throwable throwable) |
void |
shutdown() |
void |
startTransaction(Transaction transaction) |
@Inject public DefaultMessageManager(CallstackQueue callstackQueue, RequestIdAndRpcIdFactory requestIdAndRpcIdFactory, ConfigManger configManger)
public void addNonTransaction(Message message)
addNonTransaction in interface MessageManagerpublic void endTransaction(Transaction transaction)
endTransaction in interface MessageManagerpublic ConfigManger getConfigManager()
getConfigManager in interface MessageManagerpublic void startTransaction(Transaction transaction)
startTransaction in interface MessageManagerpublic void shutdown()
shutdown in interface MessageManagerpublic boolean hasTransaction()
hasTransaction in interface MessageManagerpublic void setup()
setup in interface MessageManagerpublic void setup(String requestId, String rpcId)
setup in interface MessageManagerpublic TraceContext exportContext()
exportContext in interface MessageManagerpublic void importContext(TraceContext ctx)
importContext in interface MessageManagerpublic String getClientAppId()
getClientAppId in interface MessageManagerpublic boolean hasContext()
hasContext in interface MessageManagerpublic boolean isImportContext()
isImportContext in interface MessageManagerpublic void reset()
reset in interface MessageManagerpublic void removeContext()
removeContext in interface MessageManagerpublic String nextRemoteRpcId()
nextRemoteRpcId in interface MessageManagerpublic String nextLocalRpcId()
nextLocalRpcId in interface MessageManagerpublic String getCurrentRequestId()
getCurrentRequestId in interface MessageManagerpublic String nextLocalThreadId()
public String getRpcId()
getRpcId in interface MessageManager@Deprecated public String getCurrentRpcIdAndCurrentCall()
getCurrentRpcIdAndCurrentCall in interface MessageManagerpublic boolean shouldLog(Throwable throwable)
protected DefaultMessageManager.Context getContext()
Copyright © 2019. All rights reserved.