Package org.eclipse.spi.net4j
Klasse Channel
java.lang.Object
org.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.spi.net4j.Channel
- Alle implementierten Schnittstellen:
IBufferHandler,IBufferProvider,IChannel,ILocationAware,org.eclipse.net4j.util.collection.Closeable,org.eclipse.net4j.util.concurrent.IExecutorServiceProvider,org.eclipse.net4j.util.container.IManagedContainerProvider,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.security.IUserAware,InternalChannel
public class Channel
extends org.eclipse.net4j.util.lifecycle.Lifecycle
implements InternalChannel, org.eclipse.net4j.util.concurrent.IExecutorServiceProvider, org.eclipse.net4j.util.container.IManagedContainerProvider
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
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungprotected classVeraltet.As of 4.10 scheduled for future removal.protected classVeraltet.As of 4.4 scheduled for future removal.protected classA queue that holds buffers that shall be sent.Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.buffer.IBufferProvider
IBufferProvider.Introspection, IBufferProvider.NotificationVon 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.InternalChannel
InternalChannel.CountersChangedEvent, InternalChannel.SendQueueEvent -
Feldübersicht
Von Klasse geerbte Felder org.eclipse.net4j.util.lifecycle.Lifecycle
USE_LABEL -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclose()protected Channel.ReceiverWorkcreateReceiverWork(IBuffer buffer) Veraltet.As of 4.10 scheduled for future removal.protected voidprotected voidprotected voidshortReturns the capacity of the buffers provided byIBufferProvider.provideBuffer().org.eclipse.net4j.util.container.IManagedContainershortgetID()Returns the ID of this channel.Returns the multiplexer this channel is associated with.longReturns the number ofbuffersthat are received from themultiplexerof this channel and are passed on to thereceive handlerof this channel.final longReturns the number of bytes that are received from themultiplexerof this channel and are passed on to thereceive handlerof this channel.Veraltet.Returns theIBufferHandlerthat handles buffers received from the peer channel.longReturns the number ofbuffersthat are sent to themultiplexerof this channel.final longReturns the number of bytes that are sent to themultiplexerof this channel.voidhandleBuffer(IBuffer buffer) Handles the given buffer.voidhandleBufferFromMultiplexer(IBuffer buffer) Handles a buffer sent by the multiplexer.booleanisClient()booleanisClosed()booleanisServer()Provides a buffer from thisBufferProvider.voidretainBuffer(IBuffer buffer) Retains a buffer to thisBufferProvider.voidsendBuffer(IBuffer buffer) Asynchronously sends the given buffer to the receive handler of the peer channel.voidsetID(short id) voidsetMultiplexer(IChannelMultiplexer channelMultiplexer) voidsetReceiveExecutor(ExecutorService receiveExecutor) Veraltet.voidsetReceiveHandler(IBufferHandler receiveHandler) Sets theIBufferHandlerto handle buffers received from the peer channel.voidtoString()protected voidVon Klasse geerbte Methoden org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivationVon Klasse geerbte Methoden org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, 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.util.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActiveVon Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Konstruktordetails
-
Channel
public Channel()
-
-
Methodendetails
-
getContainer
public org.eclipse.net4j.util.container.IManagedContainer getContainer()- Angegeben von:
getContainerin Schnittstelleorg.eclipse.net4j.util.container.IManagedContainerProvider
-
getUserID
- Angegeben von:
getUserIDin Schnittstelleorg.eclipse.net4j.util.security.IUserAware
-
setUserID
- Angegeben von:
setUserIDin SchnittstelleInternalChannel
-
getLocation
Beschreibung aus Schnittstelle kopiert:ILocationAware- Angegeben von:
getLocationin SchnittstelleILocationAware
-
isClient
public boolean isClient()Beschreibung aus Schnittstelle kopiert:ILocationAware- Angegeben von:
isClientin SchnittstelleILocationAware
-
isServer
public boolean isServer()Beschreibung aus Schnittstelle kopiert:ILocationAware- Angegeben von:
isServerin SchnittstelleILocationAware
-
getMultiplexer
Beschreibung aus Schnittstelle kopiert:IChannelReturns the multiplexer this channel is associated with. This channel multiplexer can be used, for example, to open additional channels that will be multiplexed through the same transport medium.- Angegeben von:
getMultiplexerin SchnittstelleIChannel
-
setMultiplexer
- Angegeben von:
setMultiplexerin SchnittstelleInternalChannel
-
getID
public short getID()Beschreibung aus Schnittstelle kopiert:IChannelReturns the ID of this channel. The ID is unique at any time among all channels of the associatedmultiplexer. -
setID
public void setID(short id) - Angegeben von:
setIDin SchnittstelleInternalChannel
-
getExecutorService
- Angegeben von:
getExecutorServicein Schnittstelleorg.eclipse.net4j.util.concurrent.IExecutorServiceProvider- Seit:
- 4.5
-
getReceiveExecutor
Veraltet.- Angegeben von:
getReceiveExecutorin SchnittstelleInternalChannel
-
setReceiveExecutor
Veraltet.- Angegeben von:
setReceiveExecutorin SchnittstelleInternalChannel
-
getReceiveHandler
Beschreibung aus Schnittstelle kopiert:IChannelReturns theIBufferHandlerthat handles buffers received from the peer channel.- Angegeben von:
getReceiveHandlerin SchnittstelleIChannel
-
setReceiveHandler
Beschreibung aus Schnittstelle kopiert:IChannelSets theIBufferHandlerto handle buffers received from the peer channel.- Angegeben von:
setReceiveHandlerin SchnittstelleIChannel
-
getSentBuffers
public long getSentBuffers()Beschreibung aus Schnittstelle kopiert:IChannelReturns the number ofbuffersthat are sent to themultiplexerof this channel.- Angegeben von:
getSentBuffersin SchnittstelleIChannel- Seit:
- 3.0
-
getSentBytes
public final long getSentBytes()Beschreibung aus Schnittstelle kopiert:IChannelReturns the number of bytes that are sent to themultiplexerof this channel.- Angegeben von:
getSentBytesin SchnittstelleIChannel- Seit:
- 4.13
-
getReceivedBuffers
public long getReceivedBuffers()Beschreibung aus Schnittstelle kopiert:IChannelReturns the number ofbuffersthat are received from themultiplexerof this channel and are passed on to thereceive handlerof this channel.- Angegeben von:
getReceivedBuffersin SchnittstelleIChannel- Seit:
- 3.0
-
getReceivedBytes
public final long getReceivedBytes()Beschreibung aus Schnittstelle kopiert:IChannelReturns the number of bytes that are received from themultiplexerof this channel and are passed on to thereceive handlerof this channel.- Angegeben von:
getReceivedBytesin SchnittstelleIChannel- Seit:
- 4.13
-
getSendQueue
- Angegeben von:
getSendQueuein SchnittstelleInternalChannel
-
sendBuffer
Beschreibung aus Schnittstelle kopiert:IChannelAsynchronously sends the given buffer to the receive handler of the peer channel.- Angegeben von:
sendBufferin SchnittstelleIChannel
-
handleBuffer
Handles the given buffer. Ensures it is in the PUTTING state (otherwise ignores it) and sends it on behalf of the send queue.- Angegeben von:
handleBufferin SchnittstelleIBufferHandler- Parameter:
buffer- The buffer to be handled.- Siehe auch:
-
handleBufferFromMultiplexer
Handles a buffer sent by the multiplexer. Adds work to the receive queue or releases the buffer.- Angegeben von:
handleBufferFromMultiplexerin SchnittstelleInternalChannel- Siehe auch:
-
createReceiverWork
Veraltet.As of 4.10 scheduled for future removal. -
getBufferCapacity
public short getBufferCapacity()Beschreibung aus Schnittstelle kopiert:IBufferProviderReturns the capacity of the buffers provided byIBufferProvider.provideBuffer().- Angegeben von:
getBufferCapacityin SchnittstelleIBufferProvider
-
provideBuffer
Beschreibung aus Schnittstelle kopiert:IBufferProviderProvides a buffer from thisBufferProvider.- Angegeben von:
provideBufferin SchnittstelleIBufferProvider
-
retainBuffer
Beschreibung aus Schnittstelle kopiert:IBufferProviderRetains a buffer to thisBufferProvider.- Angegeben von:
retainBufferin SchnittstelleIBufferProvider
-
toString
- Setzt außer Kraft:
toStringin Klasseorg.eclipse.net4j.util.lifecycle.Lifecycle
-
doBeforeActivate
- Setzt außer Kraft:
doBeforeActivatein Klasseorg.eclipse.net4j.util.lifecycle.Lifecycle- Löst aus:
Exception
-
doActivate
- Setzt außer Kraft:
doActivatein Klasseorg.eclipse.net4j.util.lifecycle.Lifecycle- Löst aus:
Exception
-
doDeactivate
- Setzt außer Kraft:
doDeactivatein Klasseorg.eclipse.net4j.util.lifecycle.Lifecycle- Löst aus:
Exception
-
unregisterFromMultiplexer
protected void unregisterFromMultiplexer() -
close
public void close()- Angegeben von:
closein Schnittstelleorg.eclipse.net4j.util.collection.Closeable
-
isClosed
public boolean isClosed()- Angegeben von:
isClosedin Schnittstelleorg.eclipse.net4j.util.collection.Closeable
-