Interface AsyncGroup


public interface AsyncGroup
AsyncGroup is the inferface to execute added Runner(s) asynchronously.

The method Add is to add target Runner(s). This interface is used as an argument of DaxSrc.setup(com.github.sttk.sabi.AsyncGroup), DaxConn.commit(com.github.sttk.sabi.AsyncGroup), and DaxConn.rollback(com.github.sttk.sabi.AsyncGroup).

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
    RunnerFailed is an error reason which indicates that a Runner failed.
    static final record 
    RunnerInterrupted is an error reason which indicates that a Runner's thread is interrupted.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(Runner runner)
    Adds a runner to be run asynchronously.
  • Method Details

    • add

      void add(Runner runner)
      Adds a runner to be run asynchronously.
      Parameters:
      runner - A Runner object.