| Modifier and Type | Class and Description |
|---|---|
class |
NativeCallContext
This class represents a
Context implementation for native calls. |
| Constructor and Description |
|---|
BLangCallableUnitCallback(Context nativeCallCtx,
WorkerExecutionContext parentCtx,
int[] retRegs,
BType[] retTypes) |
| Modifier and Type | Field and Description |
|---|---|
Context |
WorkerContext.parent |
| Modifier and Type | Method and Description |
|---|---|
static BStruct |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
String message)
Create error Struct from given message.
|
static BStruct |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
String message,
BStruct cause)
Create error Struct from given error message and cause.
|
static BStruct |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
StructInfo errorType,
Object... values)
Create an error Struct from given struct type and message.
|
static BStruct |
BLangVMErrors.createError(Context context,
int ip,
String message) |
static BStruct |
BLangVMErrors.createError(Context context,
String message)
Create error Struct from given error message.
|
static BStruct |
BLangVMErrors.createIllegalStateException(Context context,
String msg) |
static BStruct |
BLangVMErrors.createNullRefException(Context context) |
abstract void |
BlockingNativeCallableUnit.execute(Context context) |
void |
BlockingNativeCallableUnit.execute(Context context,
CallableUnitCallback callback) |
static AsyncInvocableWorkerResponseContext |
BLangScheduler.executeBlockingNativeAsync(NativeCallableUnit nativeCallable,
Context nativeCtx,
int flags) |
static AsyncInvocableWorkerResponseContext |
BLangScheduler.executeNonBlockingNativeAsync(NativeCallableUnit nativeCallable,
Context nativeCtx,
int flags) |
static void |
BLangVMWorkers.invoke(ProgramFile programFile,
CallableUnitInfo callableUnitInfo,
Context parent) |
static void |
BLangVMWorkers.invoke(ProgramFile programFile,
CallableUnitInfo callableUnitInfo,
Context parent,
Map<String,Object> properties) |
| Constructor and Description |
|---|
BLangAsyncCallableUnitCallback(WorkerResponseContext respCtx,
Context nativeCallCtx) |
WorkerContext(ProgramFile programFile,
Context parent) |
| Modifier and Type | Method and Description |
|---|---|
static BStruct |
ConnectorUtils.createAndGetStruct(Context context,
String packagePath,
String structName)
Deprecated.
This method is used to create a struct given the context and required struct details.
|
static BStruct |
BLangConnectorSPIUtil.createBStruct(Context context,
String pkgPath,
String structName,
Object... values)
Creates a VM struct value.
|
static BStruct |
BLangConnectorSPIUtil.createObject(Context context,
String pkgPath,
String structName,
BValue... values) |
static BallerinaServerConnector |
ConnectorUtils.getBallerinaServerConnector(Context context,
String protocolPkgPath)
Deprecated.
|
static Struct |
BLangConnectorSPIUtil.getConnectorEndpointStruct(Context context)
Get ConnectorEndPoint struct.
|
static Service |
BLangConnectorSPIUtil.getServiceRegistered(Context context)
Returns Service registered.
|
| Constructor and Description |
|---|
BallerinaConnectorException(Context stack)
Constructs a new
BallerinaConnectorException with ballerina context. |
BallerinaConnectorException(String message,
Context context)
Constructs a new
BallerinaConnectorException with error message and ballerina context. |
BallerinaConnectorException(String message,
Throwable cause,
Context context)
Constructs a new
BallerinaConnectorException with the specified detail message,
cause and ballerina context. |
| Modifier and Type | Method and Description |
|---|---|
void |
NativeCallableUnit.execute(Context context,
CallableUnitCallback callback)
Executes the implementation of the callable unit.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BTable.addData(BStruct data,
Context context) |
void |
BTable.performAddOperation(BStruct data,
Context context)
Performs addition of a record to the database.
|
void |
BTable.performRemoveOperation(Context context,
BFunctionPointer lambdaFunction)
Performs Removal of records matching the condition defined by the provided lambda function.
|
| Constructor and Description |
|---|
ResponseWorkerThread(Context context) |
| Modifier and Type | Method and Description |
|---|---|
static BStruct |
TableUtils.createTableOperationError(Context context,
Throwable throwable)
Creates an instance of
{@link BStruct} of the type error. |
| Modifier and Type | Method and Description |
|---|---|
Context |
BallerinaException.getContext() |
| Constructor and Description |
|---|
BallerinaException(Context stack) |
BallerinaException(String message,
Context context)
Constructs a new
BallerinaException with ballerina context. |
BallerinaException(String message,
Throwable cause,
Context context)
Constructs a new
BallerinaException with the specified detail message, cause and ballerina context. |
| Modifier and Type | Method and Description |
|---|---|
static Optional<ObserverContext> |
ObservabilityUtils.getParentContext(Context context) |
Copyright © 2018 WSO2. All rights reserved.