final class EventConfig (View source)

EventConfig.

Represents configuration structure which could be used in construction of the EventBase .

Constants

FEATURE_ET

FEATURE_O1

FEATURE_FDS

Methods

__construct()

__construct.

bool
avoidMethod(string $method)

avoidMethod.

bool
requireFeatures(int $feature)

requireFeatures.

bool
setFlags(int $flags)

Sets one or more flags to configure what parts of the eventual EventBase will be initialized, and how they'll work

void
setMaxDispatchInterval(int $max_interval, int $max_callbacks, int $min_priority)

setMaxDispatchInterval.

Details

__construct()

__construct.

Constructs EventConfig object.

bool avoidMethod(string $method)

avoidMethod.

Tells libevent to avoid specific event method.

Parameters

string $method

Return Value

bool

See also

https://secure.php.net/manual/en/eventconfig.avoidmethod.php

bool requireFeatures(int $feature)

requireFeatures.

Enters a required event method feature that the application demands.

Parameters

int $feature

Return Value

bool

See also

https://secure.php.net/manual/en/eventconfig.requirefeatures.php

bool setFlags(int $flags)

Since: libevent version 2.0.2-alpha

Sets one or more flags to configure what parts of the eventual EventBase will be initialized, and how they'll work

Parameters

int $flags

Return Value

bool

void setMaxDispatchInterval(int $max_interval, int $max_callbacks, int $min_priority)

setMaxDispatchInterval.

Prevents priority inversion.

Parameters

int $max_interval
int $max_callbacks
int $min_priority

Return Value

void

See also

https://secure.php.net/manual/en/eventconfig.setmaxdispatchinterval.php