public class AcceptorLazyImpl extends AcceptorBase
connectionCache, enqueueTime, hostname, initialized, locatorPort, name, port, type, wrapperorb, selectionKey, useSelectThreadToWait, useWorkerThreadForEvent, workIIOP_CLEAR_TEXT, SSL_PREFIXBOOT_NAMING, DEFAULT_ENDPOINT, NO_NAME| Constructor and Description |
|---|
AcceptorLazyImpl(ORB orb,
int port,
String name,
String type) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the
Acceptor. |
void |
doWork() |
Socket |
getAcceptedSocket()
Blocks until a new Socket is available on the acceptor's port.
|
SelectableChannel |
getChannel() |
ServerSocket |
getServerSocket() |
boolean |
initialize()
Used to initialize an
Acceptor. |
boolean |
isLazy() |
boolean |
shouldRegisterAcceptEvent()
Used to determine if the
Acceptor should register
with a Selector to handle accept events. |
addToIORTemplate, createOutputObject, getAcceptor, getConnection, getConnectionCache, getConnectionCacheType, getEnqueueTime, getEventHandler, getHost, getHostName, getInterestOps, getInterfaceName, getLocatorPort, getMonitoringName, getName, getPort, getType, initialized, makeIIOPProfileTemplate, processSocket, setConnectionCache, setEnqueueTime, setLocatorPort, toString, toStringNamegetSelectionKey, getWork, handleEvent, setSelectionKey, setUseSelectThreadToWait, setUseWorkerThreadForEvent, setWork, shouldUseSelectThreadToWait, shouldUseWorkerThreadForEventpublic boolean isLazy()
isLazy in interface AcceptorisLazy in class AcceptorBasepublic Socket getAcceptedSocket()
Acceptorpublic SelectableChannel getChannel()
public boolean initialize()
AcceptorAcceptor.
For example, initialization may mean to create a
ServerSocketChannel.
Note: this must be prepared to be be called multiple times.true when it performs initializatin
actions (typically the first call.public void close()
AcceptorAcceptor.public ServerSocket getServerSocket()
public void doWork()
public boolean shouldRegisterAcceptEvent()
AcceptorAcceptor should register
with a Selector to handle accept events.
For example, this may be false in the case of Solaris Doors
which do not actively listen.shouldRegisterAcceptEvent in interface AcceptorshouldRegisterAcceptEvent in class AcceptorBasetrue if the Acceptor should be
registered with a Selector.Copyright © 2017–2019 Eclipse Foundation. All rights reserved.