$_defaults $_defaults : array Default options that can be overridden via the $options constructor arg Type array
__construct() __construct(array $options = array()) Creates a new AbstractConsumer Parameters array $options
getNumThreads() getNumThreads() : integer Number of requests/batches that will be processed in parallel. Returns integer
persist() persist(array $batch) : boolean Persist a batch of messages in whatever way the implementer sees fit Parameters array $batch an array of messages to consume Returns boolean — success or fail
_debug() _debug() : boolean Returns true if in debug mode, false if in production mode Returns boolean
_encode() _encode(array $params) : string Encode an array to be persisted Parameters array $params Returns string
_handleError() _handleError( $code, $msg) Handles errors that occur in a consumer Parameters $code $msg