Class AsyncOperationParams

All Implemented Interfaces:
HasHandlers
Direct Known Subclasses:
AsyncDataBoundOperationParams, BuildViaAIRequest

public class AsyncOperationParams extends RefDataClass
Parameters to an asynchronous operation.
See Also:
  • Constructor Details

    • AsyncOperationParams

      public AsyncOperationParams()
    • AsyncOperationParams

      public AsyncOperationParams(JavaScriptObject jsObj)
  • Method Details

    • getOrCreateRef

      public static AsyncOperationParams getOrCreateRef(JavaScriptObject jsObj)
    • setCancellationController

      public AsyncOperationParams setCancellationController(CancellationController cancellationController)
      A CancellationController that the asynchronous operation should look to for whether the operation is canceled.

      This may be null if the invoker of the asynchronous operation does not need the ability to cancel. However, note that the result type may still be CANCELED; for example, the asynchronous operation may be self-canceling after a timeout.

      Implementations of asynchronous operations must treat this CancellationController as observer-only, and they cannot cancel it.

      Parameters:
      cancellationController - New cancellationController value. Default value is null
      Returns:
      AsyncOperationParams instance, for chaining setter calls
    • getCancellationController

      public CancellationController getCancellationController()
      A CancellationController that the asynchronous operation should look to for whether the operation is canceled.

      This may be null if the invoker of the asynchronous operation does not need the ability to cancel. However, note that the result type may still be CANCELED; for example, the asynchronous operation may be self-canceling after a timeout.

      Implementations of asynchronous operations must treat this CancellationController as observer-only, and they cannot cancel it.

      Returns:
      Current cancellationController value. Default value is null