public class Executor extends Object
Executor
Is the entry point from server connector side to ballerina side.
After doing the dispatching and finding the resource, server connector implementations can use
this API to invoke Ballerina engine.Constructor and Description |
---|
Executor() |
Modifier and Type | Method and Description |
---|---|
static void |
submit(Resource resource,
CallableUnitCallback responseCallback,
Map<String,Object> properties,
ObserverContext observerContext,
BValue... values)
This method will execute Ballerina resource in non-blocking manner.
|
static void |
submit(Resource resource,
CallableUnitCallback responseCallback,
Map<String,Object> properties,
ObserverContext observerContext,
WorkerExecutionContext context,
BValue... values)
This method will execute Ballerina resource in non-blocking manner.
|
public static void submit(Resource resource, CallableUnitCallback responseCallback, Map<String,Object> properties, ObserverContext observerContext, BValue... values) throws BallerinaConnectorException
resource
- to be executed.responseCallback
- to be executed when execution completes.properties
- to be passed to context.observerContext
- for the resource invocation.values
- required for the resource.BallerinaConnectorException
public static void submit(Resource resource, CallableUnitCallback responseCallback, Map<String,Object> properties, ObserverContext observerContext, WorkerExecutionContext context, BValue... values) throws BallerinaConnectorException
resource
- to be executed.responseCallback
- to be executed when execution completes.properties
- to be passed to context.observerContext
- for the resource invocation.context
- of the resource execution.values
- required for the resource.BallerinaConnectorException
Copyright © 2018 WSO2. All rights reserved.