Interface AsyncService<K extends Serializable,​S extends AsyncStatus<K>,​V>

  • Type Parameters:
    K - type of task id
    S - type of status
    V - type of result
    All Known Subinterfaces:
    BulkService
    All Known Implementing Classes:
    BulkServiceImpl

    public interface AsyncService<K extends Serializable,​S extends AsyncStatus<K>,​V>
    Interface to be implemented by asynchronous services.
    Since:
    10.3
    • Method Detail

      • getStatus

        @NotNull
        S getStatus​(K taskId)
        Returns the status of a task.
      • abort

        @NotNull
        S abort​(K taskId)
        Aborts an asynchronous task. Service should try to cancel the task, if not possible it must try to stop it.
      • getResult

        V getResult​(K taskId)
        Retrieves the command execution result.