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 BMap<String,BValue> |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
String message)
Create error Struct from given message.
|
static BMap<String,BValue> |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
String message,
BMap<String,BValue> cause)
Create error Struct from given error message and cause.
|
static BMap<String,BValue> |
BLangVMErrors.createError(Context context,
boolean attachCallStack,
StructureTypeInfo errorType,
Object... values)
Create an error Struct from given struct type and message.
|
static BMap<String,BValue> |
BLangVMErrors.createError(Context context,
String message)
Create error Struct from given error message.
|
static BMap<String,BValue> |
BLangVMErrors.createIllegalStateException(Context context,
String msg) |
static BMap<String,BValue> |
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) |
Constructor and Description |
---|
BLangAsyncCallableUnitCallback(WorkerResponseContext respCtx,
Context nativeCallCtx) |
WorkerContext(ProgramFile programFile,
Context parent) |
Modifier and Type | Method and Description |
---|---|
static BMap<String,BValue> |
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 BMap<String,BValue> |
BLangConnectorSPIUtil.createBStruct(Context context,
String pkgPath,
String structName,
Object... values)
Creates a VM struct value.
|
static BMap<String,BValue> |
BLangConnectorSPIUtil.createObject(Context context,
String pkgPath,
String structName,
BValue... values)
This is a helper method to create a object in native code.
|
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(BMap<String,BValue> data,
Context context) |
void |
BTable.performAddOperation(BMap<String,BValue> 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 BMap<?,?> |
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) |
static void |
ObservabilityUtils.logMessageToActiveSpan(Context context,
String logLevel,
String logMessage,
boolean isError) |
Copyright © 2018 WSO2. All rights reserved.