PHP Класс Segment_Consumer_LibCurl

Наследование: extends Segment_QueueConsumer
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$type

Открытые методы

Метод Описание
__construct ( string $secret, array $options = [] ) Creates a new queued fork consumer which queues fork and identify calls before adding them to
flushBatch ( array $messages ) : boolean Make an async request to our API. Fork a curl process, immediately send to the API. If debug is enabled, we wait for the response.

Описание методов

__construct() публичный Метод

Creates a new queued fork consumer which queues fork and identify calls before adding them to
public __construct ( string $secret, array $options = [] )
$secret string
$options array boolean "debug" - whether to use debug output, wait for response. number "max_queue_size" - the max size of messages to enqueue number "batch_size" - how many messages to send in a single request

flushBatch() публичный Метод

Make an async request to our API. Fork a curl process, immediately send to the API. If debug is enabled, we wait for the response.
public flushBatch ( array $messages ) : boolean
$messages array array of all the messages to send
Результат boolean whether the request succeeded

Описание свойств

$type защищенное свойство

protected $type