Property | Type | Description | |
---|---|---|---|
$_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 |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
onStart ( ) : void | SetUp |
Method | Description | |
---|---|---|
connect ( ) : void | Connect to the DataSift HTTP stream | |
disconnect ( ) : void | Disconnect from the DataSift stream | |
reconnect ( ) : void | Reconnect to the DataSift stream |
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 |
public setAutoReconnect ( boolean $reconnect ) : void | ||
$reconnect | boolean | True to enable automatic reconnection |
return | void |
protected $_auto_reconnect |
protected $_max_line_length |