Constructor for the Tube class that creates a Tube object using the 'default' tube on the server.
Constructor for the Tube class that creates a Tube object using the 'default' tube on the server. Use this method in preference to creating a Tube using a Connection object as this guarantees a Connection dedicated to the Tube.
This function buries a specified job. Note that you must have first reserved the job before you can bury it.
This function deletes a specific job from Beanstalk. Note that you must have reserved the job before you can delete it.
This function removes one or more names from the server tubes that a Tube object watches.
This function attempts to kick buried jobs. If there are buried jobs then Beanstalk will return them to a ready state. Failing that, if there are any delayed jobs they will be kicked instead.
This function kicks a specific job if it is sitting in the buried or delayed queues.
This function 'peeks' at the Beanstalk ready queue to see if there is a job available. If there is a job is is returned. Note that peeking does not reserve the job returned.
This function 'peeks' at the Beanstalk buried queue to see if there is a job available. If there is a job is is returned. Note that peeking does not reserve the job returned.
This function 'peeks' at the Beanstalk delayed queue to see if there is a job available. If there is a job is is returned. Note that peeking does not reserve the job returned.
This function peeks at Beanstalks contents to see if a job with a given id exists. If it does it is returned. Note that peeking does not reserve the job returned.
This function adds a new job to the tube that is currently being used.
This function releases a previously reserved job back to Beanstalk control.
A blocking implementation of the reserve() method that will not return until such time as a Job is available or an exception occurs.
This function attempts to reserve a job from one of the tubes that a Tube object is currently watching. Note that the return type for the function is a Nullable!Job. This value will test as null if a Job did not become available before the time out.
This function touches a job, extending its time to run on the server. Note that you must have first reserved the job before you can touch it.
This function alters the server tube that a Tube object uses.
This function adds to the server tubes that a Tube object watches.
Getter for the connection property.
This function retrieves a string containing the name of the tube that the Tube object is currently using.
This function is simply an alias for a call to the use() function.
This function returns a list of the name for the tubes that the Tube object is currently watching.
The name of the default tube if an explicit tube is not used.
The maximum length permitted for a tube name.
This class models a tube within a Beanstalkd instance. There are two concepts associated with Tubes - watching and using. When you use a tube you alter the target tube that new jobs get added to. When you watch a tube you are indicating that you are interested in the jobs that have been added to it. You can only use a single tube at any one time but you can watch multiple tubes simultaneously.
Note that the Connection object associated with a Tube instance should not be shared with any other tubes. For this reason it's probably best practice to create Tube's directly using the constructor that takes a Server object as that will guarantee a new Connection for the Tube.