EventConfig (class)

The EventConfig class

Introduction

(PECL event >= 1.2.6-beta)

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

Class synopsis

final EventConfig {
/* Constants */
const integer FEATURE_ET = 1 ;
const integer FEATURE_O1 = 2 ;
const integer FEATURE_FDS = 4 ;
/* Methods */
public bool avoidMethod (  string $method  )
public __construct ( void )
public bool requireFeatures (  int $feature  )
public void setMaxDispatchInterval (  int $max_interval  ,  int $max_callbacks  ,  int $min_priority  )
}

Predefined Constants

EventConfig::FEATURE_ET

Requires a backend method that supports edge-triggered I/O.

EventConfig::FEATURE_O1

Requires a backend method where adding or deleting a single event, or having a single event become active, is an O(1) operation.

EventConfig::FEATURE_FDS

Requires a backend method that can support arbitrary file descriptor types, and not just sockets.

Table of Contents

© 1997–2017 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://secure.php.net/manual/en/class.eventconfig.php

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部