public get ( array $query, integer $runningResetDuration, integer $waitDurationInMillis = 3000, integer $pollDurationInMillis = 200 ) : array | null | ||
$query | array | in same format as \MongoDB\Collection::find() where top level fields do not contain operators. Lower level fields can however. eg: valid {a: {$gt: 1}, "b.c": 3}, invalid {$and: [{...}, {...}]} |
$runningResetDuration | integer | second duration the message can stay unacked before it resets and can be retreived again. |
$waitDurationInMillis | integer | millisecond duration to wait for a message. |
$pollDurationInMillis | integer | millisecond duration to wait between polls. |
return | array | null | the message or null if one is not found |