PushManager
Table of Contents
Constants
-
QUEUE_ROUTE_KEY_CONNECTION
= 'calendar:SyncConnectionPush'
-
QUEUE_ROUTE_KEY_SECTION
= 'calendar:SyncSectionPush'
-
TYPE_CONNECTION
= 'CONNECTION'
-
TYPE_SECTION
= 'SECTION'
-
TYPE_SECTION_CONNECTION
= 'SECTION_CONNECTION'
Methods
-
addPush()
: Result
-
deletePush()
: void
-
getPush()
: Push|null
-
handlePush()
: Result
-
lockConnection()
: bool
-
renewPush()
: Result
-
setBlockPush()
: bool
-
setUnblockPush()
: void
-
setUnprocessedPush()
: void
-
unLockConnection()
: bool
-
updatePush()
: void
QUEUE_ROUTE_KEY_CONNECTION
public
mixed
QUEUE_ROUTE_KEY_CONNECTION
= 'calendar:SyncConnectionPush'
QUEUE_ROUTE_KEY_SECTION
public
mixed
QUEUE_ROUTE_KEY_SECTION
= 'calendar:SyncSectionPush'
TYPE_CONNECTION
public
mixed
TYPE_CONNECTION
= 'CONNECTION'
TYPE_SECTION
public
mixed
TYPE_SECTION
= 'SECTION'
TYPE_SECTION_CONNECTION
public
mixed
TYPE_SECTION_CONNECTION
= 'SECTION_CONNECTION'
addPush()
public
addPush(string $entityType, int $entityId, array<string|int, mixed> $data) : Result
Parameters
-
$entityType
: string
-
-
$entityId
: int
-
-
$data
: array<string|int, mixed>
-
-
throws
-
ObjectException
-
throws
-
Exception
deletePush()
public
deletePush(Push $push) : void
Parameters
-
$push
: Push
-
-
throws
-
Exception
getPush()
public
getPush(string $entityType, int $entityId) : Push|null
Parameters
-
$entityType
: string
-
-
$entityId
: int
-
-
throws
-
ArgumentException
-
throws
-
ObjectException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
handlePush()
public
handlePush(string $channel, string $resourceId[, bool $forceUnprocessedPush = false ]) : Result
Parameters
-
$channel
: string
-
-
$resourceId
: string
-
-
$forceUnprocessedPush
: bool
= false
-
-
throws
-
ArgumentException
-
throws
-
BaseException
-
throws
-
ObjectException
-
throws
-
ObjectNotFoundException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
Exception
lockConnection()
public
lockConnection(Connection $connection[, int $time = 30 ]) : bool
Parameters
-
$connection
: Connection
-
-
$time
: int
= 30
-
renewPush()
public
renewPush(Push $push, array<string|int, mixed> $data) : Result
Parameters
-
$push
: Push
-
-
$data
: array<string|int, mixed>
-
-
throws
-
ObjectException
-
throws
-
Exception
setBlockPush()
public
setBlockPush(Push|null $push) : bool
Parameters
-
$push
: Push|null
-
setUnblockPush()
public
setUnblockPush(Push|null $push) : void
Parameters
-
$push
: Push|null
-
-
throws
-
ArgumentException
-
throws
-
BaseException
-
throws
-
ObjectException
-
throws
-
ObjectNotFoundException
-
throws
-
ObjectPropertyException
-
throws
-
SystemException
-
throws
-
Exception
setUnprocessedPush()
public
setUnprocessedPush(Push|null $push) : void
Parameters
-
$push
: Push|null
-
-
throws
-
Exception
unLockConnection()
public
unLockConnection(Connection $connection) : bool
Parameters
-
$connection
: Connection
-
updatePush()
public
updatePush(Push $pushChannel) : void
Parameters
-
$pushChannel
: Push
-
-
throws
-
Exception