<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>The EventConfig class</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="eventbufferevent.about.callbacks.html">About buffer event callbacks</a></div> <div class="next" style="text-align: right; float: right;"><a href="eventconfig.avoidmethod.html">EventConfig::avoidMethod</a></div> <div class="up"><a href="book.event.html">Event</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="class.eventconfig" class="reference"> <h1 class="title">The EventConfig class</h1> <div class="partintro"><p class="verinfo">(PECL event >= 1.2.6-beta)</p> <div class="section" id="eventconfig.intro"> <h2 class="title">Introduction</h2> <p class="para"> Represents configuration structure which could be used in construction of the <a href="class.eventbase.html" class="classname">EventBase</a> . </p> </div> <div class="section" id="eventconfig.synopsis"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"> </div> <div class="classsynopsisinfo"> <span class="ooclass"> <span class="modifier">final</span> <strong class="classname">EventConfig</strong> </span> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Constants */</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">integer</span> <var class="fieldsynopsis_varname"><a href="class.eventconfig.html#eventconfig.constants.feature-et"><var class="varname">FEATURE_ET</var></a></var> <span class="initializer"> = 1</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">integer</span> <var class="fieldsynopsis_varname"><a href="class.eventconfig.html#eventconfig.constants.feature-o1"><var class="varname">FEATURE_O1</var></a></var> <span class="initializer"> = 2</span> ;</div> <div class="fieldsynopsis"> <span class="modifier">const</span> <span class="type">integer</span> <var class="fieldsynopsis_varname"><a href="class.eventconfig.html#eventconfig.constants.feature-fds"><var class="varname">FEATURE_FDS</var></a></var> <span class="initializer"> = 4</span> ;</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><a href="eventconfig.avoidmethod.html" class="methodname">avoidMethod</a></span> ( <span class="methodparam"> <span class="type">int</span> <code class="parameter">$method</code> </span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="methodname"><a href="eventconfig.construct.html" class="methodname">__construct</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">bool</span> <span class="methodname"><a href="eventconfig.requirefeatures.html" class="methodname">requireFeatures</a></span> ( <span class="methodparam"> <span class="type">int</span> <code class="parameter">$feature</code> </span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="eventconfig.setmaxdispatchinterval.html" class="methodname">setMaxDispatchInterval</a></span> ( <span class="methodparam"> <span class="type">int</span> <code class="parameter">$max_interval</code> </span> , <span class="methodparam"> <span class="type">int</span> <code class="parameter">$max_callbacks</code> </span> , <span class="methodparam"> <span class="type">int</span> <code class="parameter">$min_priority</code> </span> )</div> }</div> </div> <div class="section" id="eventconfig.constants"> <h2 class="title">Predefined Constants</h2> <dl> <dt id="eventconfig.constants.feature-et"> <span class="term"> <strong><code>EventConfig::FEATURE_ET</code></strong> </span> <dd> <p class="para"> Requires a backend method that supports edge-triggered I/O. </p> </dd> </dt> <dt id="eventconfig.constants.feature-o1"> <span class="term"> <strong><code>EventConfig::FEATURE_O1</code></strong> </span> <dd> <p class="para"> Requires a backend method where adding or deleting a single event, or having a single event become active, is an O(1) operation. </p> </dd> </dt> <dt id="eventconfig.constants.feature-fds"> <span class="term"> <strong><code>EventConfig::FEATURE_FDS</code></strong> </span> <dd> <p class="para"> Requires a backend method that can support arbitrary file descriptor types, and not just sockets. </p> </dd> </dt> </dl> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="eventconfig.avoidmethod.html">EventConfig::avoidMethod</a> — Tells libevent to avoid specific event method</li><li><a href="eventconfig.construct.html">EventConfig::__construct</a> — Constructs EventConfig object</li><li><a href="eventconfig.requirefeatures.html">EventConfig::requireFeatures</a> — Enters a required event method feature that the application demands</li><li><a href="eventconfig.setmaxdispatchinterval.html">EventConfig::setMaxDispatchInterval</a> — Prevents priority inversion</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="eventbufferevent.about.callbacks.html">About buffer event callbacks</a></div> <div class="next" style="text-align: right; float: right;"><a href="eventconfig.avoidmethod.html">EventConfig::avoidMethod</a></div> <div class="up"><a href="book.event.html">Event</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>