Package org.eclipse.spi.net4j
Klasse ChannelMultiplexer
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.net4j.util.lifecycle.ShareableLifecycle
org.eclipse.net4j.util.container.Container<IChannel>
org.eclipse.spi.net4j.ChannelMultiplexer
- Alle implementierten Schnittstellen:
IBufferProvider,IChannelMultiplexer,ILocationAware,ITransportConfigAware,org.eclipse.net4j.util.concurrent.IExecutorServiceProvider,org.eclipse.net4j.util.container.IContainer<IChannel>,org.eclipse.net4j.util.event.INotifier,org.eclipse.net4j.util.event.INotifier.INotifier2,org.eclipse.net4j.util.lifecycle.IDeactivateable,org.eclipse.net4j.util.lifecycle.ILifecycle,org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation,org.eclipse.net4j.util.properties.IPropertiesContainer,InternalChannelMultiplexer,InverseCloseable
- Bekannte direkte Unterklassen:
Connector
public abstract class ChannelMultiplexer
extends org.eclipse.net4j.util.container.Container<IChannel>
implements InternalChannelMultiplexer, org.eclipse.net4j.util.concurrent.IExecutorServiceProvider, InverseCloseable
If the meaning of this type isn't clear, there really should be more of a description here...
- Seit:
- 2.0
- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.buffer.IBufferProvider
IBufferProvider.Introspection, IBufferProvider.NotificationVon Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.container.IContainer
org.eclipse.net4j.util.container.IContainer.Modifiable<E>, org.eclipse.net4j.util.container.IContainer.Persistable<E>, org.eclipse.net4j.util.container.IContainer.Persistence<E>Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivationVon Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.ILocationAware
ILocationAware.LocationVon Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.spi.net4j.InternalChannelMultiplexer
InternalChannelMultiplexer.BufferMultiplexer -
Feldübersicht
Von Klasse geerbte Felder org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABELVon Schnittstelle geerbte Felder org.eclipse.net4j.channel.IChannelMultiplexer
DEFAULT_OPEN_CHANNEL_TIMEOUT, NO_CHANNEL_TIMEOUTVon Schnittstelle geerbte Felder org.eclipse.spi.net4j.InternalChannelMultiplexer
CONTEXT_MULTIPLEXER, RESERVED_CHANNEL -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidcloseChannel(InternalChannel channel) protected InternalChannelprotected abstract org.eclipse.net4j.util.security.INegotiationContextprotected <INFRA_STRUCTURE>
IProtocol<INFRA_STRUCTURE> createProtocol(String type, INFRA_STRUCTURE infraStructure) protected org.eclipse.net4j.util.factory.IFactoryKeyprotected abstract voidderegisterChannelFromPeer(InternalChannel channel) protected voiddoBeforeOpenChannel(IProtocol<?> protocol) protected voidfinal InternalChannelgetChannel(short channelID) final Collection<IChannel> Returns a collection of currently open channels.Returns the current transport configuration if there is one, a new empty one otherwise.IChannel[]longprotected voidinitChannel(InternalChannel channel, IProtocol<?> protocol) voidvoidinverseCloseChannel(short channelID) inverseOpenChannel(short channelID, String protocolID) Veraltet.inverseOpenChannel(short channelID, String protocolID, int protocolVersion) booleanisEmpty()booleanSynchronous request to open a newIChannelwith an undefined channel protocol.openChannel(String protocolID, Object infraStructure) Synchronous request to open a newIChannelwith a channel protocol defined by a given protocol identifier.openChannel(IProtocol<?> protocol) Synchronous request to open a newIChannelwith the given channel protocol .protected abstract voidregisterChannelWithPeer(short channelID, long timeout, IProtocol<?> protocol) voidsetConfig(ITransportConfig config) Sets a new transport configuration by copying the given one.voidsetOpenChannelTimeout(long openChannelTimeout) Von Klasse geerbte Methoden org.eclipse.net4j.util.container.Container
fireContainerEvent, fireContainerEvent, fireContainerEvent, fireElementAddedEvent, fireElementRemovedEvent, fireElementsAddedEvent, fireElementsRemovedEvent, fireEvent, newContainerEvent, newContainerEventVon Klasse geerbte Methoden org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doActivate, doAfterActivate, doBeforeActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation, toStringVon Klasse geerbte Methoden org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListenerVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden org.eclipse.net4j.buffer.IBufferProvider
getBufferCapacity, provideBuffer, retainBufferVon Schnittstelle geerbte Methoden org.eclipse.net4j.ILocationAware
getLocation, isClient, isServerVon Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListenerVon Schnittstelle geerbte Methoden org.eclipse.spi.net4j.InternalChannelMultiplexer
multiplexChannel
-
Konstruktordetails
-
ChannelMultiplexer
public ChannelMultiplexer()
-
-
Methodendetails
-
properties
- Angegeben von:
propertiesin Schnittstelleorg.eclipse.net4j.util.properties.IPropertiesContainer- Seit:
- 4.12
-
needsBufferProvider
public boolean needsBufferProvider()- Angegeben von:
needsBufferProviderin SchnittstelleInternalChannelMultiplexer
-
getConfig
Beschreibung aus Schnittstelle kopiert:ITransportConfigAwareReturns the current transport configuration if there is one, a new empty one otherwise.- Angegeben von:
getConfigin SchnittstelleITransportConfigAware
-
setConfig
Beschreibung aus Schnittstelle kopiert:ITransportConfigAwareSets a new transport configuration by copying the given one.- Angegeben von:
setConfigin SchnittstelleITransportConfigAware
-
getExecutorService
- Angegeben von:
getExecutorServicein Schnittstelleorg.eclipse.net4j.util.concurrent.IExecutorServiceProvider
-
getOpenChannelTimeout
public long getOpenChannelTimeout()- Angegeben von:
getOpenChannelTimeoutin SchnittstelleIChannelMultiplexer
-
setOpenChannelTimeout
public void setOpenChannelTimeout(long openChannelTimeout) - Angegeben von:
setOpenChannelTimeoutin SchnittstelleIChannelMultiplexer
-
getChannel
-
getChannels
Beschreibung aus Schnittstelle kopiert:IChannelMultiplexerReturns a collection of currently open channels.- Angegeben von:
getChannelsin SchnittstelleIChannelMultiplexer
-
isEmpty
public boolean isEmpty() -
getElements
- Angegeben von:
getElementsin Schnittstelleorg.eclipse.net4j.util.container.IContainer<IChannel>
-
openChannel
Beschreibung aus Schnittstelle kopiert:IChannelMultiplexerSynchronous request to open a newIChannelwith an undefined channel protocol. Since the peer connector can't lookup a protocolfactorywithout a protocol identifier theIBufferHandlerof the peerIChannelcan only be provided by externally provided channellifecyclelisteners.- Angegeben von:
openChannelin SchnittstelleIChannelMultiplexer- Löst aus:
ChannelException- Siehe auch:
-
openChannel
public InternalChannel openChannel(String protocolID, Object infraStructure) throws ChannelException Beschreibung aus Schnittstelle kopiert:IChannelMultiplexerSynchronous request to open a newIChannelwith a channel protocol defined by a given protocol identifier. The peer connector will lookup a protocolfactorywith the protocol identifier, create aIBufferHandlerand inject it into the peerIChannel.- Angegeben von:
openChannelin SchnittstelleIChannelMultiplexer- Löst aus:
ChannelException- Siehe auch:
-
openChannel
Beschreibung aus Schnittstelle kopiert:IChannelMultiplexerSynchronous request to open a newIChannelwith the given channel protocol . The peer connector will lookup a protocolfactorywith the protocol identifier, create aIBufferHandlerand inject it into the peer channel.- Angegeben von:
openChannelin SchnittstelleIChannelMultiplexer- Löst aus:
ChannelException- Siehe auch:
-
inverseOpenChannel
Veraltet. -
inverseOpenChannel
- Seit:
- 4.2
-
closeChannel
- Angegeben von:
closeChannelin SchnittstelleInternalChannelMultiplexer- Löst aus:
ChannelException
-
inverseCloseChannel
- Löst aus:
ChannelException
-
inverseClose
public void inverseClose()- Angegeben von:
inverseClosein SchnittstelleInverseCloseable
-
createChannel
-
initChannel
-
createProtocol
-
createProtocolFactoryKey
-
doBeforeOpenChannel
-
doDeactivate
- Setzt außer Kraft:
doDeactivatein Klasseorg.eclipse.net4j.util.lifecycle.Lifecycle- Löst aus:
Exception
-
createNegotiationContext
protected abstract org.eclipse.net4j.util.security.INegotiationContext createNegotiationContext() -
registerChannelWithPeer
protected abstract void registerChannelWithPeer(short channelID, long timeout, IProtocol<?> protocol) throws ChannelException - Löst aus:
ChannelException
-
deregisterChannelFromPeer
- Löst aus:
ChannelException
-
inverseOpenChannel(short, String, int).