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.
|
public static void submit(Resource resource, CallableUnitCallback responseCallback, Map<String,Object> properties, ObserverContext observerContext, BValue... values) throws BallerinaConnectorException
resource - to be executed.properties - to be passed to context.values - required for the resource.BallerinaConnectorExceptionCopyright © 2018 WSO2. All rights reserved.