Queue
class Queue extends Facade
Constants
| protected STATE_CONTEXT_KEY |
The context key for the coroutine-local facade roots. |
Properties
| static protected Container|null | $app | The application instance being facaded. |
from Facade |
| static protected array | $resolvedInstance | The resolved object instances. |
from Facade |
| static protected array<string, true> | $scopedAccessors | Accessors whose resolved objects belong to a coroutine scope. |
from Facade |
| static protected array<string, int> | $coroutineAccessors | Accessors with coroutine-local roots, and their current generation. |
from Facade |
| static protected bool | $cached | Indicates if the resolved instance should be cached. |
from Facade |
Methods
Initiate a mock expectation on the facade.
Initiate a mock expectation on the facade.
Create a fresh mock instance for the given class.
Get the registered name of the component.
Resolve the facade root instance from the container.
Clear a resolved facade instance.
Get the application instance behind the facade.
Handle dynamic, static calls to the object.
Register a callback to be executed to pick jobs.
Replace the bound instance with a fake that fakes all jobs except the given jobs.
Replace the bound instance with a fake during the given callable's execution.
Replace the bound instance with a fake during the given callable's execution.
Release the dispatch locks owned by a scoped fake and its replacement.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
\Hypervel\Support\Collection<int, \Hypervel\Queue\Jobs\InspectedJob> reservedJobs(\UnitEnum|string|null $queue = 'null')
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
<int, mixed> rawPushes()
No description
No description
No description
No description
No description
No description
No description
No description
Details
in
Facade at line 85
static void
resolved(Closure $callback)
Run a Closure when the facade has been resolved.
The callback is registered on the worker-global container and runs for every subsequent resolution of the facade accessor.
in
Facade at line 106
static MockInterface|null
spy()
Convert the facade into a Mockery spy.
Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 125
static MockInterface
partialMock()
Initiate a partial mock on the facade.
Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 142
static CompositeExpectation|Expectation|HigherOrderMessage
shouldReceive()
Initiate a mock expectation on the facade.
Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 159
static CompositeExpectation|Expectation|ExpectsHigherOrderMessage
expects()
Initiate a mock expectation on the facade.
Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 176
static protected MockInterface
createFreshMockInstance()
Create a fresh mock instance for the given class.
Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 189
static protected MockInterface
createMock()
Create a fresh mock instance for the given class.
in
Facade at line 199
static protected bool
isMock()
Determines whether a mock is set as the instance of the facade.
in
Facade at line 210
static protected string|null
getMockableClass()
Get the mockable class for the bound instance.
in
Facade at line 226
static void
swap(mixed $instance)
Hotswap the underlying instance behind the facade.
Replaces the worker-wide resolved facade instance and container binding; runtime use races across coroutines and changes every subsequent facade call.
in
Facade at line 239
static bool
isFake()
Determines whether a "fake" has been set as the facade instance.
in
Facade at line 250
static mixed
getFacadeRoot()
Get the root object behind the facade.
at line 226
static protected string
getFacadeAccessor()
Get the registered name of the component.
in
Facade at line 266
static protected mixed
resolveFacadeInstance(string $name)
Resolve the facade root instance from the container.
in
Facade at line 312
static void
clearResolvedInstance(string|null $name = null)
Clear a resolved facade instance.
Later facade calls everywhere resolve again; only references already held keep the previous instance.
in
Facade at line 330
static void
clearResolvedInstances()
Clear all of the resolved instances.
Later facade calls everywhere resolve again; only references already held keep the previous instances.
in
Facade at line 344
static Collection
defaultAliases()
Get the application default aliases.
in
Facade at line 404
static Container|null
getFacadeApplication()
Get the application instance behind the facade.
in
Facade at line 415
static void
setFacadeApplication(Container|null $app)
Set the application instance.
Replaces the worker-wide facade application reference; runtime use races across coroutines and breaks every facade lookup.
in
Facade at line 427
static mixed
__callStatic(string $method, array $args)
Handle dynamic, static calls to the object.
at line 122
static void
popUsing(string $workerName, callable|null $callback)
Register a callback to be executed to pick jobs.
The callback persists for the worker lifetime and runs on every job pop for the named worker. Passing null removes the callback.
at line 133
static QueueFake
fake(array|string $jobsToFake = [])
Replace the bound instance with a fake.
Swaps the resolved facade instance for the worker lifetime.
at line 156
static QueueFake
fakeExcept(array|string $jobsToAllow)
Replace the bound instance with a fake that fakes all jobs except the given jobs.
Swaps the resolved facade instance for the worker lifetime.
at line 167
static mixed
fakeFor(callable $callable, array $jobsToFake = [])
Replace the bound instance with a fake during the given callable's execution.
Swaps the resolved facade instance worker-wide until the callable returns.
at line 190
static mixed
fakeExceptFor(callable $callable, array $jobsToAllow = [])
Replace the bound instance with a fake during the given callable's execution.
Swaps the resolved facade instance worker-wide until the callable returns.
at line 211
static protected void
releaseScopedFakeLocks(QueueFake $fake)
Release the dispatch locks owned by a scoped fake and its replacement.
at line 114
static void
addConnector(string $driver, Closure $resolver)
No description
at line 114
static QueueManager
addPoolableDriver(string $driver)
No description
at line 114
static void
after(mixed $callback)
No description
at line 114
static void
before(mixed $callback)
No description
at line 114
static bool
connected(UnitEnum|string|null $name = 'null')
No description
at line 114
static Queue
connection(UnitEnum|string|null $name = 'null')
No description
at line 114
static void
createPayloadUsing(callable|null $callback)
No description
at line 114
static void
exceptionOccurred(mixed $callback)
No description
at line 114
static void
extend(string $driver, Closure $resolver)
No description
at line 114
static void
failing(mixed $callback)
No description
at line 114
static void
forward(array<array-key $, UnitEnum $queue, UnitEnum|string|null $to = 'null', UnitEnum|string|null $connection = 'null')
No description
at line 114
static Container
getApplication()
No description
at line 114
static string
getDefaultDriver()
No description
at line 114
static string
getName(string|null $connection = 'null')
No description
at line 114
static array
getPausedQueues(array $queues, string|null $connection = 'null')
No description
at line 114
static array
getPoolableDrivers()
No description
at line 114
static Closure|null
getReleaseCallback(string $driver)
No description
at line 114
static bool
isPaused(UnitEnum|string $queue, UnitEnum|string|null $connection = 'null')
No description
at line 114
static void
looping(mixed $callback)
No description
at line 114
static void
pause(UnitEnum|string $queue, UnitEnum|string|null $connection = 'null')
No description
at line 114
static void
pauseAll()
No description
at line 114
static void
pauseFor(UnitEnum|string $queue, DateTimeInterface|int $ttl, UnitEnum|string|null $connection = 'null')
No description
at line 114
static void
purge(string|null $name = 'null')
No description
at line 114
static QueueManager
removePoolableDriver(string $driver)
No description
at line 114
static string|null
resolveConnectionFromQueueRoute(object $queueable, UnitEnum $queue = 'null')
No description
at line 114
static string|null
resolveQueueFromQueueRoute(object $queueable)
No description
at line 114
static void
resume(UnitEnum|string $queue, UnitEnum|string|null $connection = 'null')
No description
at line 114
static void
resumeAll()
No description
at line 114
static void
route(array|string $class, UnitEnum|string|null $queue = 'null', UnitEnum|string|null $connection = 'null')
No description
at line 114
static QueueManager
setApplication(Container $app)
No description
at line 114
static void
setDefaultDriver(UnitEnum|string $name)
No description
at line 114
static QueueManager
setPoolableDrivers(array $poolableDrivers)
No description
at line 114
static QueueManager
setReleaseCallback(string $driver, Closure $callback)
No description
at line 114
static void
starting(mixed $callback)
No description
at line 114
static void
stopping(mixed $callback)
No description
at line 114
static void
whenJobRunsLongerThan(CarbonInterval|int|float $threshold, callable $handler)
No description
at line 114
static void
withoutInterruptionPolling()
No description
at line 114
static mixed
bulk(array $jobs, mixed $data = '\'\'', UnitEnum|string|null $queue = 'null')
No description
at line 114
static int|null
creationTimeOfOldestPendingJob(UnitEnum|string|null $queue = 'null')
No description
at line 114
static int
delayedSize(UnitEnum|string|null $queue = 'null')
No description
at line 114
static string
getConnectionName()
No description
at line 114
static mixed
later(DateTimeInterface|int $delay, object|string $job, mixed $data = '\'\'', UnitEnum|string|null $queue = 'null')
No description
at line 114
static mixed
laterOn(UnitEnum|string|null $queue, DateTimeInterface|int $delay, object|string $job, mixed $data = '\'\'')
No description
at line 114
static int
pendingSize(UnitEnum|string|null $queue = 'null')
No description
at line 114
static Job|null
pop(UnitEnum|string|null $queue = 'null')
No description
at line 114
static mixed
push(object|string $job, mixed $data = '\'\'', UnitEnum|string|null $queue = 'null')
No description
at line 114
static mixed
pushOn(UnitEnum|string|null $queue, object|string $job, mixed $data = '\'\'')
No description
at line 114
static mixed
pushRaw(string $payload, UnitEnum|string|null $queue = 'null', array $options = '[]')
No description
at line 114
static int
reservedSize(UnitEnum|string|null $queue = 'null')
No description
at line 114
static Queue
setConnectionName(string $name)
No description
at line 114
static int
size(UnitEnum|string|null $queue = 'null')
No description
at line 114
static void
flushState()
No description
at line 114
static array
getConfig()
No description
at line 114
static Container
getContainer()
No description
at line 114
static mixed
getJobBackoff(mixed $job)
No description
at line 114
static mixed
getJobExpiration(mixed $job)
No description
at line 114
static mixed
getJobTries(mixed $job)
No description
at line 114
static Queue
setAfterCommitDispatcher(Closure $dispatcher)
No description
at line 114
static Queue
setConfig(array $config)
No description
at line 114
static QueueFake
afterPushing(callable $callback)
No description
at line 114
void
static()
\Hypervel\Support\Collection<int, \Hypervel\Queue\Jobs\InspectedJob> reservedJobs(\UnitEnum|string|null $queue = 'null')
at line 114
static void
assertClosureNotPushed(null|array<string $, mixed>|callable $callback = 'null')
No description
at line 114
static void
assertClosurePushed(null|array<string $, mixed>|callable|int $callback = 'null')
No description
at line 114
static void
assertCount(int $expectedCount)
No description
at line 114
static void
assertNothingPushed()
No description
at line 114
static void
assertNotPushed(Closure|string $job, null|array<string $, mixed>|callable $callback = 'null')
No description
at line 114
static void
assertPushed(Closure|string $job, null|array<string $, mixed>|callable|int $callback = 'null')
No description
at line 114
static void
assertPushedOn(UnitEnum|string|null $queue, Closure|string $job, null|array<string $, mixed>|callable $callback = 'null')
No description
at line 114
static void
assertPushedOnce(string $job)
No description
at line 114
static void
assertPushedTimes(string $job, int $times = '1')
No description
at line 114
static void
assertPushedWithChain(string $job, array $expectedChain = '[]', null|array<string $, mixed>|callable $callback = 'null')
No description
at line 114
static void
assertPushedWithoutChain(string $job, null|array<string $, mixed>|callable $callback = 'null')
No description
at line 114
static QueueFake
beforePushing(callable $callback)
No description
at line 114
static void
clearReserved()
No description
at line 114
static QueueFake
except(array|string $jobsToBeQueued)
No description
at line 114
static bool
hasPushed(string $job)
No description
at line 114
static Collection
listenersPushed(string $listenerClass, callable|null $callback = 'null')
No description
at line 114
static Collection
pushed(string $job, null|array<string $, mixed>|callable $callback = 'null')
No description
at line 114
static array
pushedJobs()
No description
at line 114
static void
array()
<int, mixed> rawPushes()
at line 114
static void
releaseUniqueJobLocks()
No description
at line 114
static void
reserve(object|string $job, UnitEnum|string|null $queue = 'null')
No description
at line 114
static QueueFake
serializeAndRestore(bool $serializeAndRestore = 'true')
No description
at line 114
static bool
shouldFakeJob(object|string $job)
No description
at line 114
static int
totalDelayedSize()
No description
at line 114
static int
totalPendingSize()
No description
at line 114
static int
totalReservedSize()
No description
at line 114
static int
totalSize()
No description