public interface JobProducer
JobProducer is a kind of client beanstalk, that is responsible for
the production job.long putJob(int priority,
int delay,
int ttr,
byte[] data)
priority - an integer < 2**32. Jobs with smaller priority values will be
scheduled before jobs with larger priorities. The most urgent
priority is 0; the least urgent priority is 4,294,967,295.delay - TimeUnit.SECONDSttr - TimeUnit.SECONDS time to run -- is an integer number of
seconds to allow a worker to run this job. This time is counted
from the moment a worker reserves this job. If the worker does not
delete, release, or bury the job within data - the job body,that length is an integer indicating the size of the
job body, not including the trailing "\r\n". This value must be
less than max-job-size (default: 2**16).void close()
Copyright © 2012~2016–2019 dinstone. All rights reserved.