protected class AbstractConnectorHttpClientTransport.ClientSelectorManager extends SelectorManager
SelectorManager.AcceptListenerAbstractLifeCycle.AbstractLifeCycleListenerContainer.InheritedListener, Container.ListenerLifeCycle.ListenerDEFAULT_CONNECT_TIMEOUT, LOG| Modifier | Constructor and Description |
|---|---|
protected |
ClientSelectorManager(HttpClient client,
int selectors) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
connectionFailed(java.nio.channels.SelectableChannel channel,
java.lang.Throwable x,
java.lang.Object attachment)
Callback method invoked when a non-blocking connect cannot be completed.
|
Connection |
newConnection(java.nio.channels.SelectableChannel channel,
EndPoint endPoint,
java.lang.Object attachment)
Factory method to create
Connection. |
protected EndPoint |
newEndPoint(java.nio.channels.SelectableChannel channel,
ManagedSelector selector,
java.nio.channels.SelectionKey key)
Factory method to create
EndPoint. |
accept, accept, accepted, acceptor, addAcceptListener, addEventListener, connect, connectionClosed, connectionOpened, doAccept, doFinishConnect, doStart, doStop, endPointClosed, endPointOpened, execute, getConnectTimeout, getExecutor, getReservedThreads, getScheduler, getSelectorCount, isConnectionPending, newSelector, newSelector, onAccepted, onAcceptFailed, onAccepting, removeAcceptListener, removeEventListener, setConnectTimeout, setReservedThreadsaddBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdump, dump, dump, dumpObject, dumpObjects, dumpSelfprotected ClientSelectorManager(HttpClient client, int selectors)
protected EndPoint newEndPoint(java.nio.channels.SelectableChannel channel, ManagedSelector selector, java.nio.channels.SelectionKey key)
SelectorManagerFactory method to create EndPoint.
This method is invoked as a result of the registration of a channel via SelectorManager.connect(SelectableChannel, Object)
or SelectorManager.accept(SelectableChannel).
newEndPoint in class SelectorManagerchannel - the channel associated to the endpointselector - the selector the channel is registered tokey - the selection keySelectorManager.newConnection(SelectableChannel, EndPoint, Object)public Connection newConnection(java.nio.channels.SelectableChannel channel, EndPoint endPoint, java.lang.Object attachment) throws java.io.IOException
SelectorManagerFactory method to create Connection.
newConnection in class SelectorManagerchannel - the channel associated to the connectionendPoint - the endpointattachment - the attachmentjava.io.IOException - if unable to create new connectionprotected void connectionFailed(java.nio.channels.SelectableChannel channel,
java.lang.Throwable x,
java.lang.Object attachment)
SelectorManagerCallback method invoked when a non-blocking connect cannot be completed.
By default it just logs with level warning.
connectionFailed in class SelectorManagerchannel - the channel that attempted the connectx - the exception that caused the connect to failattachment - the attachment object associated at registrationCopyright © 1995–2021 Webtide. All rights reserved.