Interface AsyncCallback<P,R extends AsyncCallbackAction>

Type Parameters:
P - the type of the object that represents the callback parameters
R - the type of the object that can be used to provide the callback response for the given callback parameters asynchronously
All Superinterfaces:
Callback
All Known Subinterfaces:
AlertCallback, AuthenticateCallback, BeforeFormRepostCallback, BeforeUnloadCallback, BrowserAsyncCallback<P,R>, CertificateErrorCallback, ConfirmCallback, NetworkAsyncCallback<P,R>, OpenExternalAppCallback, OpenFileCallback, OpenFilesCallback, OpenFolderCallback, PermissionsAsyncCallback<P,R>, PrintCallback, PrintHtmlCallback, PrintPdfCallback, PromptCallback, RequestPdfDocumentPasswordCallback, RequestPermissionCallback, SaveAsPdfCallback, SaveCreditCardCallback, SaveFileCallback, SavePasswordCallback, SaveUserDataProfileCallback, SelectClientCertificateCallback, SelectColorCallback, ShowContextMenuCallback, StartCaptureSessionCallback, StartDownloadCallback, StartPresentationCallback, UpdatePasswordCallback, UpdateUserDataProfileCallback
All Known Implementing Classes:
DefaultAlertCallback, DefaultAlertCallback, DefaultAlertCallback, DefaultBeforeFormRepostCallback, DefaultBeforeFormRepostCallback, DefaultBeforeFormRepostCallback, DefaultBeforeUnloadCallback, DefaultBeforeUnloadCallback, DefaultBeforeUnloadCallback, DefaultConfirmCallback, DefaultConfirmCallback, DefaultConfirmCallback, DefaultOpenExternalAppCallback, DefaultOpenExternalAppCallback, DefaultOpenExternalAppCallback, DefaultOpenFileCallback, DefaultOpenFileCallback, DefaultOpenFileCallback, DefaultOpenFilesCallback, DefaultOpenFilesCallback, DefaultOpenFilesCallback, DefaultOpenFolderCallback, DefaultOpenFolderCallback, DefaultOpenFolderCallback, DefaultPrintCallback, DefaultPrintCallback, DefaultPrintCallback, DefaultPromptCallback, DefaultPromptCallback, DefaultPromptCallback, DefaultRequestPdfDocumentPasswordCallback, DefaultRequestPdfDocumentPasswordCallback, DefaultRequestPdfDocumentPasswordCallback, DefaultSaveAsPdfCallback, DefaultSaveAsPdfCallback, DefaultSaveAsPdfCallback, DefaultSaveCreditCardCallback, DefaultSaveCreditCardCallback, DefaultSaveCreditCardCallback, DefaultSaveFileCallback, DefaultSaveFileCallback, DefaultSaveFileCallback, DefaultSavePasswordCallback, DefaultSavePasswordCallback, DefaultSavePasswordCallback, DefaultSaveUserDataProfileCallback, DefaultSaveUserDataProfileCallback, DefaultSaveUserDataProfileCallback, DefaultSelectClientCertificateCallback, DefaultSelectClientCertificateCallback, DefaultSelectClientCertificateCallback, DefaultSelectColorCallback, DefaultSelectColorCallback, DefaultSelectColorCallback, DefaultShowContextMenuCallback, DefaultShowContextMenuCallback, DefaultShowContextMenuCallback, DefaultShowDropdownCallback, DefaultShowDropdownCallback, DefaultStartCaptureSessionCallback, DefaultStartCaptureSessionCallback, DefaultStartCaptureSessionCallback, DefaultStartDownloadCallback, DefaultStartDownloadCallback, DefaultStartDownloadCallback, DefaultUpdatePasswordCallback, DefaultUpdatePasswordCallback, DefaultUpdatePasswordCallback, DefaultUpdateUserDataProfileCallback, DefaultUpdateUserDataProfileCallback, DefaultUpdateUserDataProfileCallback
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AsyncCallback<P,R extends AsyncCallbackAction> extends Callback
A common interface that all asynchronous callbacks must extend.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    on(P params, R tell)
    Invoked when the callback needs a response for the given callback parameters.
  • Method Details

    • on

      void on(P params, R tell)
      Invoked when the callback needs a response for the given callback parameters. The response can be provided asynchronously from a different thread or before the method returns. The response can be provided only once.
      Parameters:
      params - the object that represents the callback parameters
      tell - the object that can be used to provide the callback response. One of its methods must be invoked to provide the response. Once the response has been provided, any call to the object methods will result in the IllegalStateException