PHP 클래스 Segment_Consumer_Socket

상속: extends Segment_QueueConsumer
파일 보기 프로젝트 열기: segmentio/analytics-php

보호된 프로퍼티들

프로퍼티 타입 설명
$type

공개 메소드들

메소드 설명
__construct ( string $secret, array $options = [] ) Creates a new socket consumer for dispatching async requests immediately
flushBatch ( $batch )

비공개 메소드들

메소드 설명
createBody ( string $host, string $content ) : string Create the body to send as the post request.
createSocket ( )
makeRequest ( stream $socket, string $req, $retry = true ) : boolean Attempt to write the request to the socket, wait for response if debug mode is enabled.
parseResponse ( string $res ) : array Parse our response from the server, check header and body.

메소드 상세

__construct() 공개 메소드

Creates a new socket consumer for dispatching async requests immediately
public __construct ( string $secret, array $options = [] )
$secret string
$options array number "timeout" - the timeout for connecting function "error_handler" - function called back on errors. boolean "debug" - whether to use debug output, wait for response.

flushBatch() 공개 메소드

public flushBatch ( $batch )

프로퍼티 상세

$type 보호되어 있는 프로퍼티

protected $type