Class ApiProcessingContext<O>
java.lang.Object
com.scaleoutsoftware.modules.abstractions.ApiProcessingContext<O>
- Type Parameters:
O- the SOSS object type.
The api processing context provides access to contextual information during invocation processing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCache()Retrieve the underlyingCachethat stores objects for the associated module.abstract com.scaleout.client.GridConnectionRetrieve the underlyingGridConnectionused to access the ScaleOut StateServer store.abstract StringRetrieve the module name of the SOSS object.abstract StringRetrieve the unique object ID of the SOSS object.abstract CompletableFuture<Void> sendUiAlert(AlertSeverity severity, String message) Send an alert to the UI.
-
Constructor Details
-
ApiProcessingContext
public ApiProcessingContext()Instantiate a new ApiProcessingContext.
-
-
Method Details
-
getModuleName
Retrieve the module name of the SOSS object.- Returns:
- the module name.
-
getObjectId
Retrieve the unique object ID of the SOSS object.- Returns:
- the unique object ID.
-
sendUiAlert
Send an alert to the UI.- Parameters:
severity- theAlertSeverity.message- the message to display.- Returns:
- a
CompletableFuturethat will complete either due to success (no exception) or an exception occurred. An exception may occur if the UI is unavailable.
-
getGridConnection
public abstract com.scaleout.client.GridConnection getGridConnection()Retrieve the underlyingGridConnectionused to access the ScaleOut StateServer store.- Returns:
- the underlying
GridConnection.
-
getCache
Retrieve the underlyingCachethat stores objects for the associated module.- Returns:
- the underlying
Cache.
-