Package org.eclipse.jetty.io
Class ManagedSelector
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.io.ManagedSelector
-
- All Implemented Interfaces:
Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
@Deprecated(since="2021-05-27") public class ManagedSelector extends ContainerLifeCycle implements Dumpable
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ManagedSelector
wraps aSelector
simplifying non-blocking operations on channels.ManagedSelector
runs the select loop, which waits onSelector.select()
until events happen for registered channels. When events happen, it notifies theEndPoint
associated with the channel.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ManagedSelector.Selectable
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static interface
ManagedSelector.SelectorUpdate
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description ManagedSelector(SelectorManager selectorManager, int id)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
dump(java.lang.Appendable out, java.lang.String indent)
Deprecated.Dump this object (and children) into an Appendable using the provided indent after any new lines.double
getAverageSelectedKeys()
Deprecated.double
getMaxSelectedKeys()
Deprecated.long
getSelectCount()
Deprecated.java.nio.channels.Selector
getSelector()
Deprecated.int
getTotalKeys()
Deprecated.void
resetStats()
Deprecated.int
size()
Deprecated.void
submit(ManagedSelector.SelectorUpdate update)
Deprecated.Submit anManagedSelector.SelectorUpdate
to be acted on between calls toSelector.select()
java.lang.String
toString()
Deprecated.-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
-
-
-
Constructor Detail
-
ManagedSelector
public ManagedSelector(SelectorManager selectorManager, int id)
Deprecated.
-
-
Method Detail
-
getSelector
public java.nio.channels.Selector getSelector()
Deprecated.
-
getTotalKeys
@ManagedAttribute(value="Total number of keys", readonly=true) public int getTotalKeys()
Deprecated.
-
getAverageSelectedKeys
@ManagedAttribute(value="Average number of selected keys", readonly=true) public double getAverageSelectedKeys()
Deprecated.
-
getMaxSelectedKeys
@ManagedAttribute(value="Maximum number of selected keys", readonly=true) public double getMaxSelectedKeys()
Deprecated.
-
getSelectCount
@ManagedAttribute(value="Total number of select() calls", readonly=true) public long getSelectCount()
Deprecated.
-
resetStats
@ManagedOperation(value="Resets the statistics", impact="ACTION") public void resetStats()
Deprecated.
-
size
public int size()
Deprecated.
-
submit
public void submit(ManagedSelector.SelectorUpdate update)
Deprecated.Submit anManagedSelector.SelectorUpdate
to be acted on between calls toSelector.select()
- Parameters:
update
- The selector update to apply at next wakeup
-
dump
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOException
Deprecated.Description copied from interface:Dumpable
Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.- Specified by:
dump
in interfaceDumpable
- Overrides:
dump
in classContainerLifeCycle
- Parameters:
out
- The appendable to dump toindent
- The indent to apply after any new lines.- Throws:
java.io.IOException
- if unable to write to Appendable
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classAbstractLifeCycle
-
-