Skip to content

Releases: loganathan-sekaran/AsyncHelper

AsyncHelper-4.0.0

15 Jun 16:36
ab50d67

Choose a tag to compare

What's New

  • Async-Helper is an OSGi bundle now :), to use it directly in OSGi applications.

  • Renamed Async helper class to AsyncContext so that there is option to limit the context of Asynchronous operations. The global context can be obtained using AscynContext.getDefault().

  • All the existing helper classes and their methods are now converted from static to instances, so that,

    Either their default instances can be obtained using their getDefault() methods,

    AsyncContext ==> AsyncContext.getDefault()
    AsyncTask ==> AsyncTask.getDefault()
    AsyncSupplier ==> AsyncSupplier.getDefault()
    SchedulingTask ==> SchedulingTask.getDefault()
    SchedulingSupplier ==> SchedulingSupplier.getDefault()

    Or they can be instantiated with a specific arguments.

    AsyncContext ==> AsyncContext.newInstance()
    AsyncTask ==> AsyncTask.of(ExecutorService) or AsyncTask.of(ExecutorService, AsyncContext)
    AsyncSupplier ==> AsyncSupplier.of(ExecutorService) or AsyncSupplier.of(ExecutorService, AsyncContext)
    SchedulingTask ==> SchedulingTask.of(ScheduledExecutorService) or SchedulingTask.of(ScheduledExecutorService, AsyncContext)
    SchedulingSupplier ==> SchedulingSupplier.of(ScheduledExecutorService) or SchedulingSupplier.of(ScheduledExecutorService, AsyncContext)

  • The default instances of AsyncTask and AsyncSupplier use a common ForkJoinPool. But it is possible to get customized instances of these can be obtained by passing a new ExecutorService instance.

  • The default instances of SchedulingTask and SchedulingSupplier use a common ScheduledExecutorService. But it is possible to get customized instances of these can be obtained by passing a new ScheduledExecutorService instance.

  • AsyncTask includes a new static helper method AsyncTask.submitTaskInNewThread(Runnable) to submit a task by spawning a new thread.

To install use below maven dependency entry:

<dependency>
  <groupId>org.vishag</groupId>
  <artifactId>async-helper</artifactId>
  <version>4.0.0</version>
</dependency>

AsyncHelper-3.0.0

28 Nov 09:10
83922ad

Choose a tag to compare

What's New

Refactored the Asynchronous API methods to Separate helper classes Such as Async, AsyncTask, AsyncSupplier, SchedulingTask and SchedulingSupplier for easy usage. Also provided detailed Java Documentation to these Helper classes and their methods.

To install use below maven dependency entry:

<dependency>
  <groupId>org.vishag</groupId>
  <artifactId>async-helper</artifactId>
  <version>3.0.0</version>
</dependency>

AsyncHelper-2.0.0

25 Oct 14:27

Choose a tag to compare

What's New

Refactored all methods to Separate utility classes Such as Async, Submit, Schedule, Wait and Notify for easy usage.

To install use below maven dependency entry:

<dependency>
  <groupId>org.vishag</groupId>
  <artifactId>async-helper</artifactId>
  <version>2.0.0</version>
</dependency>

AsyncHelper-1.0.0

13 Oct 18:39

Choose a tag to compare

Initial release to central repository.
To install use below maven dependency entry:

<dependency>
  <groupId>org.vishag</groupId>
  <artifactId>async-helper</artifactId>
  <version>1.0.0</version>
</dependency>