Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Jan 13, 2021. It is now read-only.
/workq-javaPublic archive

Java client for the workq job queueing server

License

NotificationsYou must be signed in to change notification settings

phybros/workq-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java client library for theworkq job server. Currently under development and not feature-complete.

Building

This project uses maven. To build the jar and run tests, use

mvn clean package

Note: to run the tests you need a workq server running on localhost:9922. To skip the tests altogether and just build the jar, append-Dmaven.test.skip to the command line

Using workq-java

Once you have included the jar in your project, you can create a connection and add a new background job like so:

WorkqClientclient =newWorkqClient("localhost",9922);BackgroundJobjob =newBackgroundJob();job.setName("JobName");job.setId(UUID.randomUUID());job.setTtl(3600000);job.setPayload("Payload".getBytes());job.setPriority(100);job.setTtr(1000);job.setMaxAttempts(2);client.add(job);

In the future, you will be able to includeworkq-java as a dependency from Maven Central, but not until it is feature complete (1.0).

License

MIT License

Copyright (c) 2016 Will Warren

Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.

About

Java client for the workq job queueing server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp