public class BLangScheduler extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BLangScheduler.BLangAsyncCallableUnitCallback
This class represents the callback functionality for async non-blocking native calls.
|
static class |
BLangScheduler.SchedulerStats
This class represents the scheduler statistics.
|
Constructor and Description |
---|
BLangScheduler() |
public static WorkerExecutionContext schedule(WorkerExecutionContext ctx)
public static void executeNow(WorkerExecutionContext ctx)
ctx
- the worker execution contextpublic static void workerCountUp()
public static void workerCountDown()
public static WorkerExecutionContext schedule(WorkerExecutionContext ctx, boolean runInCaller)
public static WorkerExecutionContext resume(WorkerExecutionContext ctx)
public static WorkerExecutionContext resume(WorkerExecutionContext ctx, boolean runInCaller)
public static WorkerExecutionContext resume(WorkerExecutionContext ctx, int targetIp, boolean runInCaller)
public static WorkerExecutionContext errorThrown(WorkerExecutionContext ctx, BMap<String,BValue> error)
public static void stopWorker(WorkerExecutionContext ctx)
public static void workerDone(WorkerExecutionContext ctx)
public static void workerReady(WorkerExecutionContext ctx)
public static void workerPaused(WorkerExecutionContext ctx)
public static void workerWaitForResponse(WorkerExecutionContext ctx)
public static void workerWaitForLock(WorkerExecutionContext ctx)
public static void workerRunning(WorkerExecutionContext ctx)
public static void workerExcepted(WorkerExecutionContext ctx)
public static void waitForWorkerCompletion()
public static void dumpCallStack(WorkerExecutionContext ctx)
public static AsyncInvocableWorkerResponseContext executeBlockingNativeAsync(NativeCallableUnit nativeCallable, Context nativeCtx, int flags)
public static AsyncInvocableWorkerResponseContext executeNonBlockingNativeAsync(NativeCallableUnit nativeCallable, Context nativeCtx, int flags)
public static BLangScheduler.SchedulerStats getStats()
Copyright © 2018 WSO2. All rights reserved.