Skip to content
beanstalkd client based-on mina
Branch: master
Clone or download
dinstone Merge pull request #2 from dankilman/support-zero-timeout
Add support for zero timeout, for a non blocking reserve operation
Latest commit edd1fe7 Apr 8, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.settings exception handle improved Feb 26, 2015
license exception handle improved Feb 26, 2015
src Add support for zero timeout, for a non blocking reserve operation Apr 7, 2019
.classpath exception handle improved Feb 26, 2015
.gitignore exception handle improved Feb 26, 2015
.project exception handle improved Feb 26, 2015
README.md release and edit readme Feb 18, 2016
pom.xml release and edit readme Feb 18, 2016

README.md

What

Beanstalkc is a beanstalk client library, which is based on mina2.

How

Add Maven Dependency:

<dependency>
  <groupId>com.dinstone</groupId>
  <artifactId>beanstalkc</artifactId>
  <version>2.2.0</version>
</dependency>

Example:

	// create beanstalkc config,default loading properties from file beanstalkc.properties in classpath
	Configuration config = new Configuration();
	config.setServiceHost("127.0.0.1");
	config.setServicePort(11300);
	// create job producer and consumer
    BeanstalkClientFactory factory = new BeanstalkClientFactory(config);
    JobProducer producer = factory.createJobProducer("pctube");
    JobConsumer consumer = factory.createJobConsumer("pctube");
	// do something
    producer.putJob(...);
    consumer.reserveJob(...);
    // close client and release resources
    producer.close();
    consumer.close();
You can’t perform that action at this time.