public abstract class Acceptor extends Container<IConnector> implements InternalAcceptor
Modifier and Type | Class and Description |
---|---|
static interface |
Acceptor.ConnectorPreparer |
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>
ILifecycle.DeferrableActivation
Constructor and Description |
---|
Acceptor() |
Modifier and Type | Method and Description |
---|---|
void |
addConnector(InternalConnector connector) |
void |
close() |
protected void |
doBeforeActivate() |
protected void |
doDeactivate() |
IConnector[] |
getAcceptedConnectors()
Returns an array of the connectors that have been accepted by this acceptor and not been closed since.
|
ITransportConfig |
getConfig()
Returns the current transport configuration if there is one, a new empty one otherwise.
|
Acceptor.ConnectorPreparer |
getConnectorPreparer() |
IConnector[] |
getElements() |
INegotiator |
getNegotiator() |
boolean |
isClosed() |
boolean |
isEmpty() |
void |
prepareConnector(InternalConnector connector) |
void |
removeConnector(IConnector connector) |
void |
setConfig(ITransportConfig config)
Sets a new transport configuration by copying the given one.
|
void |
setConnectorPreparer(Acceptor.ConnectorPreparer connectorPreparer) |
void |
setNegotiator(INegotiator negotiator) |
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, newContainerEvent, newContainerEvent
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toString
addListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, getListeners, hasListeners, removeListener
public ITransportConfig getConfig()
ITransportConfigAware
getConfig
in interface ITransportConfigAware
public void setConfig(ITransportConfig config)
ITransportConfigAware
setConfig
in interface ITransportConfigAware
public Acceptor.ConnectorPreparer getConnectorPreparer()
public void setConnectorPreparer(Acceptor.ConnectorPreparer connectorPreparer)
public INegotiator getNegotiator()
getNegotiator
in interface INegotiatorAware
public void setNegotiator(INegotiator negotiator)
setNegotiator
in interface INegotiatorAware
public IConnector[] getAcceptedConnectors()
IAcceptor
getAcceptedConnectors
in interface IAcceptor
public boolean isEmpty()
isEmpty
in interface IContainer<IConnector>
isEmpty
in class Container<IConnector>
public IConnector[] getElements()
getElements
in interface IContainer<IConnector>
public void prepareConnector(InternalConnector connector)
public void addConnector(InternalConnector connector)
public void removeConnector(IConnector connector)
protected void doBeforeActivate() throws java.lang.Exception
doBeforeActivate
in class Lifecycle
java.lang.Exception
protected void doDeactivate() throws java.lang.Exception
doDeactivate
in class Lifecycle
java.lang.Exception
Copyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html