Queue
class Queue extends Facade
Properties
| static protected | $app | The application instance being facaded. |
from Facade |
| static protected array | $resolvedInstance | The resolved object instances. |
from Facade |
| static protected bool | $cached | Indicates if the resolved instance should be cached. |
from Facade |
Methods
Get the registered name of the component.
Resolve the facade root instance from the container.
Clear a resolved facade instance.
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.
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
No description
No description
No description
No description
No description
No description
No description
\Hypervel\Support\Collection<int, mixed> pushedRaw(null|\Closure $callback = '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
Details
in
Facade at line 55
static void
resolved(Closure $callback)
Run a Closure when the facade has been resolved.
Boot-only. The callback is registered on the worker-global container and runs for every subsequent resolution of the facade accessor.
in
Facade at line 71
static
spy()
Convert the facade into a Mockery spy.
in
Facade at line 89
static
partialMock()
Initiate a partial mock on the facade.
Tests only. Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 105
static
shouldReceive()
Initiate a mock expectation on the facade.
Tests only. Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 121
static
expects()
Initiate a mock expectation on the facade.
Tests only. Swaps the resolved facade instance for the worker lifetime.
in
Facade at line 135
static protected
createFreshMockInstance()
Create a fresh mock instance for the given class.
in
Facade at line 147
static protected
createMock()
Create a fresh mock instance for the given class.
in
Facade at line 157
static protected bool
isMock()
Determines whether a mock is set as the instance of the facade.
in
Facade at line 168
static protected string|null
getMockableClass()
Get the mockable class for the bound instance.
in
Facade at line 184
static
swap(mixed $instance)
Hotswap the underlying instance behind the facade.
Tests only. 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 196
static bool
isFake()
Determines whether a "fake" has been set as the facade instance.
in
Facade at line 207
static mixed
getFacadeRoot()
Get the root object behind the facade.
at line 174
static protected string
getFacadeAccessor()
Get the registered name of the component.
in
Facade at line 223
static protected mixed
resolveFacadeInstance(string $name)
Resolve the facade root instance from the container.
in
Facade at line 246
static void
clearResolvedInstance(string|null $name = null)
Clear a resolved facade instance.
Boot or tests only. Clears a worker-wide facade cache entry; concurrent coroutines may still hold the previous resolved instance.
in
Facade at line 257
static void
clearResolvedInstances()
Clear all of the resolved instances.
Boot or tests only. Clears the worker-wide facade cache; concurrent coroutines may still hold previously resolved instances.
in
Facade at line 265
static Collection
defaultAliases()
Get the application default aliases.
in
Facade at line 324
static
getFacadeApplication()
Get the application instance behind the facade.
in
Facade at line 337
static void
setFacadeApplication(mixed $app)
Set the application instance.
Tests only. Replaces the worker-wide facade application reference; runtime use races across coroutines and breaks every facade lookup.
in
Facade at line 347
static
__callStatic(string $method, array $args)
Handle dynamic, static calls to the object.
at line 108
static void
popUsing(string $workerName, callable $callback)
Register a callback to be executed to pick jobs.
at line 116
static QueueFake
fake(array|string $jobsToFake = [])
Replace the bound instance with a fake.
at line 134
static QueueFake
fakeExcept(array|string $jobsToAllow)
Replace the bound instance with a fake that fakes all jobs except the given jobs.
at line 142
static mixed
fakeFor(callable $callable, array $jobsToFake = [])
Replace the bound instance with a fake during the given callable's execution.
at line 158
static mixed
fakeExceptFor(callable $callable, array $jobsToAllow = [])
Replace the bound instance with a fake during the given callable's execution.
at line 103
static void
before(mixed $callback)
No description
at line 103
static void
after(mixed $callback)
No description
at line 103
static void
exceptionOccurred(mixed $callback)
No description
at line 103
static void
looping(mixed $callback)
No description
at line 103
static void
failing(mixed $callback)
No description
at line 103
static void
starting(mixed $callback)
No description
at line 103
static void
stopping(mixed $callback)
No description
at line 103
static void
route(array|string $class, UnitEnum|string|null $queue = 'null', UnitEnum|string|null $connection = 'null')
No description
at line 103
static void
pause(string $connection, string $queue)
No description
at line 103
static void
pauseFor(string $connection, string $queue, DateTimeInterface|int $ttl)
No description
at line 103
static void
resume(string $connection, string $queue)
No description
at line 103
static bool
isPaused(string $connection, string $queue)
No description
at line 103
static array
getPausedQueues(string $connection, array $queues)
No description
at line 103
static void
withoutInterruptionPolling()
No description
at line 103
static bool
connected(UnitEnum|string|null $name = 'null')
No description
at line 103
static Queue
connection(UnitEnum|string|null $name = 'null')
No description
at line 103
static void
extend(string $driver, Closure $resolver)
No description
at line 103
static void
addConnector(string $driver, Closure $resolver)
No description
at line 103
static string
getDefaultDriver()
No description
at line 103
static void
setDefaultDriver(UnitEnum|string $name)
No description
at line 103
static string
getName(string|null $connection = 'null')
No description
at line 103
static void
purge(string|null $name = 'null')
No description
at line 103
static Container
getApplication()
No description
at line 103
static QueueManager
setApplication(Container $app)
No description
at line 103
static QueueManager
setReleaseCallback(string $driver, Closure $callback)
No description
at line 103
static Closure|null
getReleaseCallback(string $driver)
No description
at line 103
static QueueManager
addPoolable(string $driver)
No description
at line 103
static QueueManager
removePoolable(string $driver)
No description
at line 103
static array
getPoolables()
No description
at line 103
static QueueManager
setPoolables(array $poolables)
No description
at line 103
static string|null
resolveConnectionFromQueueRoute(object $queueable)
No description
at line 103
static string|null
resolveQueueFromQueueRoute(object $queueable)
No description
at line 103
static int
size(string|null $queue = 'null')
No description
at line 103
static int
pendingSize(string|null $queue = 'null')
No description
at line 103
static int
delayedSize(string|null $queue = 'null')
No description
at line 103
static int
reservedSize(string|null $queue = 'null')
No description
at line 103
static int|null
creationTimeOfOldestPendingJob(string|null $queue = 'null')
No description
at line 103
static mixed
push(object|string $job, mixed $data = '\'\'', string|null $queue = 'null')
No description
at line 103
static mixed
pushOn(string|null $queue, object|string $job, mixed $data = '\'\'')
No description
at line 103
static mixed
pushRaw(string $payload, string|null $queue = 'null', array $options = '[]')
No description
at line 103
static mixed
later(DateTimeInterface|int $delay, object|string $job, mixed $data = '\'\'', string|null $queue = 'null')
No description
at line 103
static mixed
laterOn(string|null $queue, DateTimeInterface|int $delay, object|string $job, mixed $data = '\'\'')
No description
at line 103
static mixed
bulk(array $jobs, mixed $data = '\'\'', string|null $queue = 'null')
No description
at line 103
static Job|null
pop(string|null $queue = 'null')
No description
at line 103
static string
getConnectionName()
No description
at line 103
static Queue
setConnectionName(string $name)
No description
at line 103
static mixed
getJobTries(mixed $job)
No description
at line 103
static mixed
getJobBackoff(mixed $job)
No description
at line 103
static mixed
getJobExpiration(mixed $job)
No description
at line 103
static void
createPayloadUsing(callable|null $callback)
No description
at line 103
static Queue
setAfterCommitDispatcher(Closure $dispatcher)
No description
at line 103
static array
getConfig()
No description
at line 103
static Queue
setConfig(array $config)
No description
at line 103
static Container
getContainer()
No description
at line 103
static void
flushState()
No description
at line 103
static QueueFake
except(array|string $jobsToBeQueued)
No description
at line 103
static void
assertPushed(Closure|string $job, callable|int|null $callback = 'null')
No description
at line 103
static void
assertPushedTimes(string $job, int $times = '1')
No description
at line 103
static void
assertPushedOnce(string $job)
No description
at line 103
static void
assertPushedOn(UnitEnum|string|null $queue, Closure|string $job, callable|null $callback = 'null')
No description
at line 103
static void
assertPushedWithChain(string $job, array $expectedChain = '[]', callable|null $callback = 'null')
No description
at line 103
static void
assertPushedWithoutChain(string $job, callable|null $callback = 'null')
No description
at line 103
static void
assertClosurePushed(callable|int|null $callback = 'null')
No description
at line 103
static void
assertClosureNotPushed(callable|null $callback = 'null')
No description
at line 103
static void
assertNotPushed(Closure|string $job, callable|null $callback = 'null')
No description
at line 103
static void
assertCount(int $expectedCount)
No description
at line 103
static void
assertNothingPushed()
No description
at line 103
static Collection
pushed(string $job, callable|null $callback = 'null')
No description
at line 103
void
static()
\Hypervel\Support\Collection<int, mixed> pushedRaw(null|\Closure $callback = 'null')
at line 103
static Collection
listenersPushed(string $listenerClass, callable|null $callback = 'null')
No description
at line 103
static bool
hasPushed(string $job)
No description
at line 103
static Collection
pendingJobs(UnitEnum|string|null $queue = 'null')
No description
at line 103
static Collection
delayedJobs(UnitEnum|string|null $queue = 'null')
No description
at line 103
static Collection
reservedJobs(UnitEnum|string|null $queue = 'null')
No description
at line 103
static Collection
allPendingJobs()
No description
at line 103
static Collection
allDelayedJobs()
No description
at line 103
static Collection
allReservedJobs()
No description
at line 103
static bool
shouldFakeJob(object|string $job)
No description
at line 103
static void
reserve(object|string $job, UnitEnum|string|null $queue = 'null')
No description
at line 103
static array
pushedJobs()
No description
at line 103
static array
rawPushes()
No description
at line 103
static QueueFake
serializeAndRestore(bool $serializeAndRestore = 'true')
No description
at line 103
static void
releaseUniqueJobLocks()
No description
at line 103
static void
clearReserved()
No description
at line 103
static QueueFake
beforePushing(callable $callback)
No description
at line 103
static QueueFake
afterPushing(callable $callback)
No description