PHP Класс DataSift_StreamConsumer_HTTP

Автор: Stuart Dallas ([email protected])
Наследование: extends DataSift_StreamConsumer
Показать файл Открыть проект

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

Свойство Тип Описание
$_auto_reconnect Automatically reconnect if the connection is dropped
$_connect_timeout Connect timeout in seconds
$_max_line_length Max allowable line size from the stream
$_read_timeout Read timeout in seconds
$_stream_timeout Stream timeout in seconds

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

Метод Описание
__construct ( DataSift_User $user, mixed $definition, mixed $eventHandler ) Constructor.
setAutoReconnect ( boolean $reconnect ) : void Set whether to automatically reconnect to the stream if the connection is dropped.

Защищенные методы

Метод Описание
onStart ( ) : void SetUp

Приватные методы

Метод Описание
connect ( ) : void Connect to the DataSift HTTP stream
disconnect ( ) : void Disconnect from the DataSift stream
reconnect ( ) : void Reconnect to the DataSift stream

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

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

Constructor.
См. также: DataSift_StreamConsumer::__construct
public __construct ( DataSift_User $user, mixed $definition, mixed $eventHandler )
$user DataSift_User The authenticated user
$definition mixed CSDL string, Definition object, or array of hashes
$eventHandler mixed An object that implements IStreamConsumerEventHandler

onStart() защищенный Метод

SetUp
protected onStart ( ) : void
Результат void

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

Set whether to automatically reconnect to the stream if the connection is dropped.
public setAutoReconnect ( boolean $reconnect ) : void
$reconnect boolean True to enable automatic reconnection
Результат void

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

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

Automatically reconnect if the connection is dropped
protected $_auto_reconnect

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

Connect timeout in seconds
protected $_connect_timeout

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

Max allowable line size from the stream
protected $_max_line_length

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

Read timeout in seconds
protected $_read_timeout

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

Stream timeout in seconds
protected $_stream_timeout