public class InitWorkerResponseContext extends Object implements WorkerResponseContext
WorkerResponseContext which doesn't do anything.| Constructor and Description |
|---|
InitWorkerResponseContext(WorkerExecutionContext targetCtx) |
| Modifier and Type | Method and Description |
|---|---|
WorkerDataChannel |
getWorkerDataChannel(String name)
Creates and returns the data channels used to communicate between the workers.
|
boolean |
isErrored() |
WorkerExecutionContext |
joinTargetContextInfo(WorkerExecutionContext targetCtx,
int[] retRegIndexes)
Joins a new target worker execution context to the current response
context.
|
WorkerExecutionContext |
signal(WorkerSignal signal)
This is called by the workers to signal the response context of any
signal that needs to be passed into.
|
public InitWorkerResponseContext(WorkerExecutionContext targetCtx)
public WorkerExecutionContext signal(WorkerSignal signal)
WorkerResponseContextsignal in interface WorkerResponseContextsignal - the signal to be passed inpublic boolean isErrored()
public WorkerExecutionContext joinTargetContextInfo(WorkerExecutionContext targetCtx, int[] retRegIndexes)
WorkerResponseContextjoinTargetContextInfo in interface WorkerResponseContexttargetCtx - the target worker execution contextretRegIndexes - the return registry locations of the target execution context
where the current worker execution context should report topublic WorkerDataChannel getWorkerDataChannel(String name)
WorkerResponseContextgetWorkerDataChannel in interface WorkerResponseContextname - the unique name of the data channel name requestedCopyright © 2018 WSO2. All rights reserved.