relax-timer

A simple timer implementation.

Лицензия

Лицензия

Группа

Группа

com.infilos
Идентификатор

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

relax-timer
Последняя версия

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

0.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

relax-timer
A simple timer implementation.
Ссылка на сайт

Ссылка на сайт

https://github.com/infilow/relax-timer
Система контроля версий

Система контроля версий

https://github.com/infilow/relax-timer/tree/master

Скачать relax-timer

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

<!-- https://jarcasting.com/artifacts/com.infilos/relax-timer/ -->
<dependency>
    <groupId>com.infilos</groupId>
    <artifactId>relax-timer</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.infilos/relax-timer/
implementation 'com.infilos:relax-timer:0.1.0'
// https://jarcasting.com/artifacts/com.infilos/relax-timer/
implementation ("com.infilos:relax-timer:0.1.0")
'com.infilos:relax-timer:jar:0.1.0'
<dependency org="com.infilos" name="relax-timer" rev="0.1.0">
  <artifact name="relax-timer" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.infilos', module='relax-timer', version='0.1.0')
)
libraryDependencies += "com.infilos" % "relax-timer" % "0.1.0"
[com.infilos/relax-timer "0.1.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.google.code.findbugs : jsr305 jar 3.0.2
org.slf4j : slf4j-api jar 1.7.30

test (3)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
org.awaitility : awaitility jar 3.1.6
ch.qos.logback : logback-classic jar 1.2.3

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

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

Relax Timer

A simple Hierarchical Timing Wheels timer implementation 'copy' from kafka and rewrite with java from scala, so we can use it both in scala and java.

Related resources:

Usage

<dependency>
    <groupId>com.infilos</groupId>
    <artifactId>relax-timer</artifactId>
    <version>LATEST</version>
</dependency>

And, add a binding for slf4j:

<dependency>
    <groupId>ch.qos.logback</groupId>
    <artifactId>logback-classic</artifactId>
    <version>LATEST</version>
</dependency>

And then create time instance and submit tasks:

Timer timer = Timer.create("test-timer").startup();

// print "run..." after 2 seconds
timer.submit(new Runnable() {
    @Override
    public void run() {
        System.out.println("run...");
    }
}, 2000L);

Release

  • Snapshot: mvn clean deploy
  • Release: mvn clean package source:jar gpg:sign install:install deploy:deploy

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

Версия
0.1.0