public interface BeanstalkClient extends JobConsumer, JobProducer
BeanstalkClient is a full amount interface, mainly used for
management.| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
close the current connection and release resources. that's status is closed,
and is no longer available.
|
boolean |
ignoreTube(String tube)
The "ignore" command is for consumers.
|
long |
kick(long bound)
The kick command applies only to the currently used tube.
|
List<String> |
listTubes()
The list-tubes command returns a list of all existing tubes.
|
String |
listTubeUsed()
The list-tube-used command returns the tube currently being used by the
client.
|
List<String> |
listTubeWatched()
The list-tubes-watched command returns a list tubes currently being watched
by the client.
|
Job |
peek(long jobId)
The peek commands let the client inspect a job in the system.
|
Job |
peekBuried()
The peek commands let the client inspect a job in the system, return the next
job in the list of buried jobs.
|
Job |
peekDelayed()
The peek commands let the client inspect a job in the system, return the
delayed job with the shortest delay left.
|
Job |
peekReady()
The peek commands let the client inspect a job in the system, return the next
ready job.
|
Map<String,String> |
stats()
The stats command gives statistical information about the system as a
whole.
|
Map<String,String> |
statsJob(long jobId)
The stats-job command gives statistical information about the specified job
if it exists.
|
Map<String,String> |
statsTube(String tubeName)
The stats-tube command gives statistical information about the specified tube
if it exists.
|
boolean |
useTube(String tube)
The "use" command is for producers.
|
boolean |
watchTube(String tube)
The "watch" command adds the named tube to the watch list for the current
connection.
|
buryJob, deleteJob, releaseJob, reserveJob, touchJobputJobboolean useTube(String tube)
tube - is a name at most 200 bytes. It specifies the tube to use. If the
tube does not exist, it will be created.boolean ignoreTube(String tube)
tube - is a name at most 200 bytes.boolean watchTube(String tube)
tube - long kick(long bound)
bound - Job peek(long jobId)
jobId - Job peekReady()
Job peekDelayed()
Job peekBuried()
Map<String,String> statsJob(long jobId)
jobId - Map<String,String> statsTube(String tubeName)
tubeName - Map<String,String> stats()
String listTubeUsed()
List<String> listTubeWatched()
void close()
close 在接口中 JobConsumerclose 在接口中 JobProducerCopyright © 2012~2016–2019 dinstone. All rights reserved.