PHP 클래스 Segment_Consumer_LibCurl

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

보호된 프로퍼티들

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