Package org.eclipse.jetty.proxy
Class ConnectHandler.ConnectManager
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.io.SelectorManager
org.eclipse.jetty.proxy.ConnectHandler.ConnectManager
- All Implemented Interfaces:
Container,Destroyable,Dumpable,Dumpable.DumpableContainer,LifeCycle
- Enclosing class:
- ConnectHandler
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.io.SelectorManager
SelectorManager.AcceptListener, SelectorManager.SelectorManagerListenerNested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
Fields inherited from class org.eclipse.jetty.io.SelectorManager
DEFAULT_CONNECT_TIMEOUT, LOG -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConnectManager(Executor executor, Scheduler scheduler, int selectors) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconnectionFailed(SelectableChannel channel, Throwable ex, Object attachment) Callback method invoked when a non-blocking connect cannot be completed.newConnection(SelectableChannel channel, EndPoint endpoint, Object attachment) Factory method to createConnection.protected EndPointnewEndPoint(SelectableChannel channel, ManagedSelector selector, SelectionKey key) Factory method to createEndPoint.Methods inherited from class org.eclipse.jetty.io.SelectorManager
accept, accept, accepted, acceptor, addEventListener, chooseSelector, connect, connectionClosed, connectionOpened, doAccept, doFinishConnect, doStart, doStop, endPointClosed, endPointOpened, execute, getConnectTimeout, getExecutor, getScheduler, getSelectorCount, getTotalKeys, isConnectionPending, newSelector, newSelector, onAccepted, onAcceptFailed, onAccepting, removeEventListener, setConnectTimeout, toStringMethods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addManaged, contains, destroy, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeansMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListenersMethods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
ConnectManager
-
-
Method Details
-
newEndPoint
protected EndPoint newEndPoint(SelectableChannel channel, ManagedSelector selector, SelectionKey key) Description copied from class:SelectorManagerFactory method to create
EndPoint.This method is invoked as a result of the registration of a channel via
SelectorManager.connect(SelectableChannel, Object)orSelectorManager.accept(SelectableChannel).- Specified by:
newEndPointin classSelectorManager- Parameters:
channel- the channel associated to the endpointselector- the selector the channel is registered tokey- the selection key- Returns:
- a new endpoint
- See Also:
-
newConnection
public Connection newConnection(SelectableChannel channel, EndPoint endpoint, Object attachment) throws IOException Description copied from class:SelectorManagerFactory method to create
Connection.- Specified by:
newConnectionin classSelectorManager- Parameters:
channel- the channel associated to the connectionendpoint- the endpointattachment- the attachment- Returns:
- a new connection
- Throws:
IOException- if unable to create new connection
-
connectionFailed
Description copied from class:SelectorManagerCallback method invoked when a non-blocking connect cannot be completed.
By default it just logs with level warning.
- Overrides:
connectionFailedin classSelectorManager- Parameters:
channel- the channel that attempted the connectex- the exception that caused the connect to failattachment- the attachment object associated at registration
-