delight-concurrency

An abstract and lightweight definition of concurrency fundamentals.

Лицензия

Лицензия

GPL
Группа

Группа

org.javadelight
Идентификатор

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

delight-concurrency
Последняя версия

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

0.0.6
Дата

Дата

Тип

Тип

bundle
Описание

Описание

delight-concurrency
An abstract and lightweight definition of concurrency fundamentals.
Ссылка на сайт

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

https://github.com/javadelight/delight-concurrency
Система контроля версий

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

https://github.com/javadelight/delight-concurrency

Скачать delight-concurrency

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.javadelight : delight-async jar 0.1.5
org.javadelight : delight-factories jar 0.0.3

provided (1)

Идентификатор библиотеки Тип Версия
com.google.gwt : gwt-user jar 2.8.2

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.7

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

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

Build Status

delight-concurrency

Abstract concurrency API for Java applications based on vanilla Java.

This library is particularly useful when threads and thread-safe objects are used in code which is shared between GWT and JRE environments.

Part of Java Delight.

Usage

Initialize concurrency instance.

Concurrency concurrency = ConcurrencyJre.create();

Create an atomic Integer:

SimpleAtomicInteger = concurrency.newAtomicInteger(0);

Create a collection:

List<String> list = concurreny.newCollection().newThreadSafeList(String);

Create an executor:

SimpleExecutor executor = concurrency.newExecutor().newParallelExecutor(5, this);

executor.execute(new Runnable() {
  ...
});

executor.shutdown(new SimpleCallback() {
			
	@Override
	public void onFailure(Throwable t) {
		throw new RuntimeException(t);
	}
	
	@Override
	public void onSuccess() {
		// all done
	}
});

Maven Dependency

<dependency>
    <groupId>org.javadelight</groupId>
	<artifactId>delight-concurrency</artifactId>
	<version>[latest version]</version>
</dependency>

This artifact is available on Maven Central and BinTray.

Maven Central

Links

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

Версия
0.0.6