2.0-alpha
Pre-release
Pre-release
Changed
- Exception
Disque\Connection\ResponseException
has been moved to
Disque\Connection\Response\ResponseException
- The
Disque
constructor has changed, so instead of receiving an array of
IP addresses, it now receives an array ofCredentials
, where eachCredentials
instance refers to a specific Disque node, and allows the use of passworded
nodes. JobInterface
has changed to add the following methods:getBody()
,
setBody()
,getQueue()
,setQueue()
,getNacks()
,setNacks()
,
getAdditionalDeliveries()
,setAdditionalDeliveries()
- The
pull()
method inQueue
no longer throws aJobNotAvailableException
if no job is available, but instead returnsnull
. - The
JobNotAvailableException
has been removed, as no jobs being available
is not actually an exception, but a possible acceptable outcome. ManagerInterface
no longer has thegetConnectionClass()
and
setConnectionClass()
methods. Instead it uses the newsetConnectionFactory()
method to allow one to specify a connection factory.
Added
- Added
Node
, which handles the connection to a specific node. - Added the
failed()
method toQueue
which can be used to mark a job as
failed, therefore increasing itsNACK
counter. - Added
ConnectionFactoryInterface
, used byManagerInterface
, to create
a new connection to redis. - Added
ConnectionFactoryInterface
implementation classesPredisFactory
andSocketFactory
- Added
NodePrioritizerInterface
to allow customizing the way the client
switches through nodes based on a specific strategy. - Added
NodePrioritizerInterface
implementation classes
ConservativeJobCountPrioritizer
,RandomPrioritizer
andNullPrioritizer
- Added option
withcounters
to the$options
argument ingetJob()
which
allows the returned job to include itsNACK
and additional deliveries
counters. - Added support for
NACK