public interface Context
Context represents the runtime state of a program.| Modifier and Type | Interface and Description |
|---|---|
static class |
Context.NonBlockingContext
Data holder for Non-Blocking Action invocation.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBlobArgument(int index) |
boolean |
getBooleanArgument(int index) |
CallableUnitInfo |
getCallableUnitInfo() |
DebugContext |
getDebugContext() |
BStruct |
getError() |
double |
getFloatArgument(int index) |
long |
getIntArgument(int index) |
LocalTransactionInfo |
getLocalTransactionInfo() |
WorkerData |
getLocalWorkerData() |
BValue |
getNullableRefArgument(int index) |
String |
getNullableStringArgument(int index) |
WorkerExecutionContext |
getParentWorkerExecutionContext() |
ProgramFile |
getProgramFile() |
Map<String,Object> |
getProperties() |
Object |
getProperty(String key) |
BValue |
getRefArgument(int index) |
BValue[] |
getReturnValues() |
ServiceInfo |
getServiceInfo() |
String |
getStringArgument(int index) |
boolean |
isInTransaction() |
void |
setDebugContext(DebugContext debugContext) |
void |
setError(BStruct error) |
void |
setProperty(String key,
Object value) |
void |
setReturnValues(BValue... values) |
void |
setServiceInfo(ServiceInfo serviceInfo) |
WorkerExecutionContext getParentWorkerExecutionContext()
CallableUnitInfo getCallableUnitInfo()
WorkerData getLocalWorkerData()
DebugContext getDebugContext()
void setDebugContext(DebugContext debugContext)
ServiceInfo getServiceInfo()
void setServiceInfo(ServiceInfo serviceInfo)
boolean isInTransaction()
BStruct getError()
void setError(BStruct error)
ProgramFile getProgramFile()
LocalTransactionInfo getLocalTransactionInfo()
long getIntArgument(int index)
String getStringArgument(int index)
String getNullableStringArgument(int index)
double getFloatArgument(int index)
boolean getBooleanArgument(int index)
byte[] getBlobArgument(int index)
BValue getRefArgument(int index)
BValue getNullableRefArgument(int index)
void setReturnValues(BValue... values)
BValue[] getReturnValues()
Copyright © 2018 WSO2. All rights reserved.