PHP 클래스 DataSift_StreamConsumer_HTTP

저자: Stuart Dallas ([email protected])
상속: extends DataSift_StreamConsumer
파일 보기 프로젝트 열기: datasift/datasift-php

보호된 프로퍼티들

프로퍼티 타입 설명
$_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