public class DefaultServiceInvoker extends ServiceInvoker
| Modifier and Type | Field and Description |
|---|---|
protected ContextFactory |
contextFactory |
protected ServiceRegistry |
serviceRegistry |
protected boolean |
writeErrorsToLog
Write exceptions into the log file
|
broker, logger, name| Constructor and Description |
|---|
DefaultServiceInvoker() |
| Modifier and Type | Method and Description |
|---|---|
io.datatree.Promise |
call(java.lang.String name,
io.datatree.Tree params,
CallOptions.Options opts,
Context parent) |
protected io.datatree.Promise |
call(java.lang.String name,
io.datatree.Tree params,
CallOptions.Options opts,
Context parent,
java.lang.String targetID,
int remaining) |
boolean |
isWriteErrorsToLog() |
protected io.datatree.Promise |
retry(java.lang.Throwable cause,
java.lang.String name,
io.datatree.Tree params,
CallOptions.Options opts,
Context parent,
java.lang.String targetID,
int remaining) |
void |
setWriteErrorsToLog(boolean writeErrorsToLog) |
void |
started(ServiceBroker broker) |
getBroker, getLogger, getName, stoppedprotected boolean writeErrorsToLog
protected ServiceRegistry serviceRegistry
protected ContextFactory contextFactory
public void started(ServiceBroker broker) throws java.lang.Exception
started in class MoleculerComponentjava.lang.Exceptionpublic io.datatree.Promise call(java.lang.String name,
io.datatree.Tree params,
CallOptions.Options opts,
Context parent)
call in class ServiceInvokerprotected io.datatree.Promise call(java.lang.String name,
io.datatree.Tree params,
CallOptions.Options opts,
Context parent,
java.lang.String targetID,
int remaining)
protected io.datatree.Promise retry(java.lang.Throwable cause,
java.lang.String name,
io.datatree.Tree params,
CallOptions.Options opts,
Context parent,
java.lang.String targetID,
int remaining)
public boolean isWriteErrorsToLog()
public void setWriteErrorsToLog(boolean writeErrorsToLog)