delight-scheduler

Tools for scheduling operations in sequence or in parallel.

License

License

GPL
GroupId

GroupId

org.javadelight
ArtifactId

ArtifactId

delight-scheduler
Last Version

Last Version

0.0.3
Release Date

Release Date

Type

Type

bundle
Description

Description

delight-scheduler
Tools for scheduling operations in sequence or in parallel.
Project URL

Project URL

https://github.com/javadelight/scheduler
Source Code Management

Source Code Management

https://github.com/javadelight/scheduler

Download delight-scheduler

Dependencies

compile (2)

Group / Artifact Type Version
org.javadelight : delight-concurrency jar 0.0.6
org.javadelight : delight-simple-log jar 0.0.2

provided (1)

Group / Artifact Type Version
com.google.gwt : gwt-user jar 2.8.2

test (1)

Group / Artifact Type Version
junit : junit jar 4.7

Project Modules

There are no modules declared in this project.

Build Status

Scheduler

Tools for scheduling asynchronous operations in sequence or in parallel.

Usage

Creating a scheduler and performing an operation on it:

scheduler = new SequentialOperationScheduler(this, ConcurrencyJre.create());
scheduler.setTimeout(10);

scheduler.schedule(new Operation<Success>() {
	public void apply(ValueCallback<Success> callback) {
		// perform operations required ...
		callback.onSuccess(Success.INSTANCE);
	}
}, new ValueCallback<Success>() {
	
	public void onSuccess(Success success) {
		// operation completed successfully
	}
	
	public void onFailure(Throwable t) {
		// error during execution
	}
	
});

// Don't forget to shut down scheduler to free resources
scheduler.shutdown(new ValueCallback<Success>() {
	
	public void onSuccess(Success success) {
		// scheduler shut down successfully
	}
	
	public void onFailure(Throwable t) {
		// error during shutdown
	}
	
});

Maven Dependency

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

This artifact is available on Maven Central and BinTray.

Maven Central

Versions

Version
0.0.3