LongpollOptions
class LongpollOptions extends Options
Options for the Longpoll operation
Traits
Constants
DATETIME_FORMAT |
A Dropbox-friendly timestamp wrapper |
Methods
Create an Options object from a combination of configuration arrays and other option objects
A timeout in seconds. The request will block for at most this length of time, plus up to 90 seconds of random jitter added to avoid the thundering herd problem. Care should be taken when using this parameter, as some network infrastructure does not support long timeouts. The default for this field is 30.
Details
in Options at line line 40
__construct(
array $defaults = array())
Options constructor.
in Options at line line 55
boolean
offsetExists(
string $offset)
Whether a offset exists
in Options at line line 69
mixed
offsetGet(
string $offset)
Offset to retrieve
in Options at line line 82
offsetSet(
string $offset,
mixed $value)
Offset to set
in Options at line line 94
offsetUnset(
string $offset)
Offset to unset
in Options at line line 107
static
Options
merge(
array $options)
Create an Options object from a combination of configuration arrays and other option objects
in Options at line line 127
array
toArray()
Return the generated options
in TimeoutTrait at line line 38
TimeoutTrait
setTimeout(
int $timeout)
A timeout in seconds. The request will block for at most this length of time, plus up to 90 seconds of random jitter added to avoid the thundering herd problem. Care should be taken when using this parameter, as some network infrastructure does not support long timeouts. The default for this field is 30.