PHP 인터페이스 Bravo3\Orm\Drivers\PubSubDriverInterface

파일 보기 프로젝트 열기: bravo3/orm 0 사용 예제들

공개 메소드들

메소드 설명
getChannelPrefix ( ) : string Return the PubSub messaging channel prefix used in the underlying database driver.
isPubSubSupported ( ) : boolean Confirm that the driver supports Pub/Sub messaging.
listenToPubSub ( callable $callback ) : void Start listening to subscribed channels of the database (if PubSub is supported)
publishMessage ( string $channel, string $message ) : integer Publishes a message to the configured channel. Channel and Message length is limited based on the driver used.
setChannelPrefix ( string $prefix ) : Bravo3\Orm\Drivers\PubSubDriverInterface Sets the PubSub messaging channel prefix used in the underlying database driver.

메소드 상세

getChannelPrefix() 공개 메소드

Return the PubSub messaging channel prefix used in the underlying database driver.
public getChannelPrefix ( ) : string
리턴 string

isPubSubSupported() 공개 메소드

Confirm that the driver supports Pub/Sub messaging.
public isPubSubSupported ( ) : boolean
리턴 boolean

listenToPubSub() 공개 메소드

Start listening to subscribed channels of the database (if PubSub is supported)
public listenToPubSub ( callable $callback ) : void
$callback callable
리턴 void

publishMessage() 공개 메소드

Publishes a message to the configured channel. Channel and Message length is limited based on the driver used.
public publishMessage ( string $channel, string $message ) : integer
$channel string
$message string
리턴 integer

setChannelPrefix() 공개 메소드

Sets the PubSub messaging channel prefix used in the underlying database driver.
public setChannelPrefix ( string $prefix ) : Bravo3\Orm\Drivers\PubSubDriverInterface
$prefix string
리턴 Bravo3\Orm\Drivers\PubSubDriverInterface