Overview

Namespaces

  • PommProject
    • Cli
      • Command
      • Exception
    • Foundation
      • Client
      • Converter
        • Geometry
        • Type
      • Exception
      • Inspector
      • Listener
      • Observer
      • PreparedQuery
      • QueryManager
      • Session
      • Tester
    • ModelManager
      • Converter
      • Exception
      • Generator
      • Model
        • FlexibleEntity
        • ModelTrait
      • ModelLayer
      • Tester

Classes

  • Listener
  • ListenerPooler

Traits

  • SendNotificationTrait
  • Overview
  • Namespace
  • Class

Class ListenerPooler

ListenerPooler

Pooler for listener clients.

PommProject\Foundation\Client\ClientPooler implements PommProject\Foundation\Client\ClientPoolerInterface uses PommProject\Foundation\Client\ClientPoolerTrait
Extended by PommProject\Foundation\Listener\ListenerPooler
Namespace: PommProject\Foundation\Listener
Package: Foundation
Copyright: 2014 - 2015 Grégoire HUBERT
Author: Grégoire HUBERT
License: {@link http://opensource.org/licenses/mit-license.php}
See: PommProject\Foundation\Client\ClientPooler
Located at Listener/ListenerPooler.php
Methods summary
public
# getPoolerType( )

getPoolerType

getPoolerType

See

PommProject\Foundation\Client\ClientPoolerInterface
protected Client
# createClient( string $identifier )

createClient

createClient

See @ClientPooler

Parameters

$identifier

Returns

Client
public PommProject\Foundation\Listener\ListenerPooler
# notify( string|array $identifiers, array $data )

notify

notify

Send a notification to clients. Client identifiers may be a single client name, an array of client or '*' to notify all clients. Event name may use ':' to split indicate additional information (ie type of payload). Events sent to 'pika', 'pika:chu' will both notify client 'pika'.

Parameters

$identifiers
$data

Returns

PommProject\Foundation\Listener\ListenerPooler
$this
protected PommProject\Foundation\Listener\ListenerPooler
# notifyAll( array $data )

notifyAll

notifyAll

Notify all existing clients.

Parameters

$data

Returns

PommProject\Foundation\Listener\ListenerPooler
$this
protected PommProject\Foundation\Listener\ListenerPooler
# notifyClients( array $identifiers, array $data )

notifyClients

notifyClients

Send a notification to the specified clients.

Parameters

$identifiers
$data

Returns

PommProject\Foundation\Listener\ListenerPooler
$this
Methods inherited from PommProject\Foundation\Client\ClientPoolerInterface
getClient(), register()
Methods used from PommProject\Foundation\Client\ClientPoolerTrait
getClient(), getClientFromPool(), getSession(), register()
API documentation generated by ApiGen