Guice async extension

Allows to execute tagged methods asynchronously

Лицензия

Лицензия

Категории

Категории

GUI Взаимодействие с пользователем Guice Библиотеки уровня приложения Dependency Injection
Группа

Группа

de.skuzzle.inject
Идентификатор

Идентификатор

guice-async-extension
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Guice async extension
Allows to execute tagged methods asynchronously

Скачать guice-async-extension

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/de.skuzzle.inject/guice-async-extension/ -->
<dependency>
    <groupId>de.skuzzle.inject</groupId>
    <artifactId>guice-async-extension</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/de.skuzzle.inject/guice-async-extension/
implementation 'de.skuzzle.inject:guice-async-extension:2.0.0'
// https://jarcasting.com/artifacts/de.skuzzle.inject/guice-async-extension/
implementation ("de.skuzzle.inject:guice-async-extension:2.0.0")
'de.skuzzle.inject:guice-async-extension:jar:2.0.0'
<dependency org="de.skuzzle.inject" name="guice-async-extension" rev="2.0.0">
  <artifact name="guice-async-extension" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.skuzzle.inject', module='guice-async-extension', version='2.0.0')
)
libraryDependencies += "de.skuzzle.inject" % "guice-async-extension" % "2.0.0"
[de.skuzzle.inject/guice-async-extension "2.0.0"]

Зависимости

compile (7)

Идентификатор библиотеки Тип Версия
com.cronutils : cron-utils jar 9.0.2
org.slf4j : slf4j-api jar 1.7.30
aopalliance : aopalliance jar 1.0
com.google.guava : guava jar 28.0-jre
de.skuzzle.inject : guice-scoped-proxy-extension jar 0.1.0
com.google.inject : guice jar 4.2.2
javax.inject : javax.inject jar 1

test (3)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-simple jar 1.7.30
junit : junit jar 4.12
org.mockito : mockito-all jar 1.10.19

Модули Проекта

Данный проект не имеет модулей.

Build Status Coverage Status Maven Central JavaDoc Twitter Follow

Guice Asynchronous Methods

Execute arbitrary methods asynchronously or periodically by marking them with an annotation. Quickstart sample:

Set up the Injector:

    Injector injector = Guice.createInjector(GuiceAsync.createModule());

Use the Annotations:

public class MyService {

    @Scheduled
    @CronTrigger("0 0 0 * * *")
    public void executePeriodic(SomeService injectedParameter) {
        // ...
    }
    
    @Async
    public void executeAsynchronously(SomeService someService) {
    }
    
    @Async
    public Future<Integer> asynchronousWithResult() {
        return Futures.delegate(1337);
    }
    
    @Async
    public CompletableFuture<Integer> asynchronousWithCompletableResult() {
        return Futures.delegateCompletable(1337);
    }
}

Please have a look at the wiki for detailed setup and usage instructions (spoiler: it's easy!)

Версии библиотеки

Версия
2.0.0
2.0.0-beta
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
0.3.0
0.2.0
0.1.0