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 class
Veraltet.As of 4.10 scheduled for future removal.protected class
Veraltet.As of 4.4 scheduled for future removal.protected class
A queue that holds buffers that shall be sent.Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.buffer.IBufferProvider
IBufferProvider.Introspection, IBufferProvider.Notification
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.ILocationAware
ILocationAware.Location
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
Von 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 TypMethodeBeschreibungvoid
close()
protected Channel.ReceiverWork
createReceiverWork
(IBuffer buffer) Veraltet.As of 4.10 scheduled for future removal.protected void
protected void
protected void
short
Returns the capacity of the buffers provided byIBufferProvider.provideBuffer()
.org.eclipse.net4j.util.container.IManagedContainer
short
getID()
Returns the ID of this channel.Returns the multiplexer this channel is associated with.long
Returns the number ofbuffers
that are received from themultiplexer
of this channel and are passed on to thereceive handler
of this channel.final long
Returns the number of bytes that are received from themultiplexer
of this channel and are passed on to thereceive handler
of this channel.Veraltet.Returns theIBufferHandler
that handles buffers received from the peer channel.long
Returns the number ofbuffers
that are sent to themultiplexer
of this channel.final long
Returns the number of bytes that are sent to themultiplexer
of this channel.void
handleBuffer
(IBuffer buffer) Handles the given buffer.void
handleBufferFromMultiplexer
(IBuffer buffer) Handles a buffer sent by the multiplexer.boolean
isClient()
boolean
isClosed()
boolean
isServer()
Provides a buffer from thisBufferProvider
.void
retainBuffer
(IBuffer buffer) Retains a buffer to thisBufferProvider
.void
sendBuffer
(IBuffer buffer) Asynchronously sends the given buffer to the receive handler of the peer channel.void
setID
(short id) void
setMultiplexer
(IChannelMultiplexer channelMultiplexer) void
setReceiveExecutor
(ExecutorService receiveExecutor) Veraltet.void
setReceiveHandler
(IBufferHandler receiveHandler) Sets theIBufferHandler
to handle buffers received from the peer channel.void
toString()
protected void
Von Klasse geerbte Methoden org.eclipse.net4j.util.lifecycle.Lifecycle
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation
Von Klasse geerbte Methoden org.eclipse.net4j.util.event.Notifier
addListener, addUniqueListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListener, hasListeners, lastListenerRemoved, listenerAdded, listenerRemoved, removeListener
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActive
Von 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:
getContainer
in Schnittstelleorg.eclipse.net4j.util.container.IManagedContainerProvider
-
getUserID
- Angegeben von:
getUserID
in Schnittstelleorg.eclipse.net4j.util.security.IUserAware
-
setUserID
- Angegeben von:
setUserID
in SchnittstelleInternalChannel
-
getLocation
Beschreibung aus Schnittstelle kopiert:ILocationAware
- Angegeben von:
getLocation
in SchnittstelleILocationAware
-
isClient
public boolean isClient()Beschreibung aus Schnittstelle kopiert:ILocationAware
- Angegeben von:
isClient
in SchnittstelleILocationAware
-
isServer
public boolean isServer()Beschreibung aus Schnittstelle kopiert:ILocationAware
- Angegeben von:
isServer
in SchnittstelleILocationAware
-
getMultiplexer
Beschreibung aus Schnittstelle kopiert:IChannel
Returns 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:
getMultiplexer
in SchnittstelleIChannel
-
setMultiplexer
- Angegeben von:
setMultiplexer
in SchnittstelleInternalChannel
-
getID
public short getID()Beschreibung aus Schnittstelle kopiert:IChannel
Returns 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:
setID
in SchnittstelleInternalChannel
-
getExecutorService
- Angegeben von:
getExecutorService
in Schnittstelleorg.eclipse.net4j.util.concurrent.IExecutorServiceProvider
- Seit:
- 4.5
-
getReceiveExecutor
Veraltet.- Angegeben von:
getReceiveExecutor
in SchnittstelleInternalChannel
-
setReceiveExecutor
Veraltet.- Angegeben von:
setReceiveExecutor
in SchnittstelleInternalChannel
-
getReceiveHandler
Beschreibung aus Schnittstelle kopiert:IChannel
Returns theIBufferHandler
that handles buffers received from the peer channel.- Angegeben von:
getReceiveHandler
in SchnittstelleIChannel
-
setReceiveHandler
Beschreibung aus Schnittstelle kopiert:IChannel
Sets theIBufferHandler
to handle buffers received from the peer channel.- Angegeben von:
setReceiveHandler
in SchnittstelleIChannel
-
getSentBuffers
public long getSentBuffers()Beschreibung aus Schnittstelle kopiert:IChannel
Returns the number ofbuffers
that are sent to themultiplexer
of this channel.- Angegeben von:
getSentBuffers
in SchnittstelleIChannel
- Seit:
- 3.0
-
getSentBytes
public final long getSentBytes()Beschreibung aus Schnittstelle kopiert:IChannel
Returns the number of bytes that are sent to themultiplexer
of this channel.- Angegeben von:
getSentBytes
in SchnittstelleIChannel
- Seit:
- 4.13
-
getReceivedBuffers
public long getReceivedBuffers()Beschreibung aus Schnittstelle kopiert:IChannel
Returns the number ofbuffers
that are received from themultiplexer
of this channel and are passed on to thereceive handler
of this channel.- Angegeben von:
getReceivedBuffers
in SchnittstelleIChannel
- Seit:
- 3.0
-
getReceivedBytes
public final long getReceivedBytes()Beschreibung aus Schnittstelle kopiert:IChannel
Returns the number of bytes that are received from themultiplexer
of this channel and are passed on to thereceive handler
of this channel.- Angegeben von:
getReceivedBytes
in SchnittstelleIChannel
- Seit:
- 4.13
-
getSendQueue
- Angegeben von:
getSendQueue
in SchnittstelleInternalChannel
-
sendBuffer
Beschreibung aus Schnittstelle kopiert:IChannel
Asynchronously sends the given buffer to the receive handler of the peer channel.- Angegeben von:
sendBuffer
in 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:
handleBuffer
in 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:
handleBufferFromMultiplexer
in SchnittstelleInternalChannel
- Siehe auch:
-
createReceiverWork
Veraltet.As of 4.10 scheduled for future removal. -
getBufferCapacity
public short getBufferCapacity()Beschreibung aus Schnittstelle kopiert:IBufferProvider
Returns the capacity of the buffers provided byIBufferProvider.provideBuffer()
.- Angegeben von:
getBufferCapacity
in SchnittstelleIBufferProvider
-
provideBuffer
Beschreibung aus Schnittstelle kopiert:IBufferProvider
Provides a buffer from thisBufferProvider
.- Angegeben von:
provideBuffer
in SchnittstelleIBufferProvider
-
retainBuffer
Beschreibung aus Schnittstelle kopiert:IBufferProvider
Retains a buffer to thisBufferProvider
.- Angegeben von:
retainBuffer
in SchnittstelleIBufferProvider
-
toString
- Setzt außer Kraft:
toString
in Klasseorg.eclipse.net4j.util.lifecycle.Lifecycle
-
doBeforeActivate
- Setzt außer Kraft:
doBeforeActivate
in Klasseorg.eclipse.net4j.util.lifecycle.Lifecycle
- Löst aus:
Exception
-
doActivate
- Setzt außer Kraft:
doActivate
in Klasseorg.eclipse.net4j.util.lifecycle.Lifecycle
- Löst aus:
Exception
-
doDeactivate
- Setzt außer Kraft:
doDeactivate
in Klasseorg.eclipse.net4j.util.lifecycle.Lifecycle
- Löst aus:
Exception
-
unregisterFromMultiplexer
protected void unregisterFromMultiplexer() -
close
public void close()- Angegeben von:
close
in Schnittstelleorg.eclipse.net4j.util.collection.Closeable
-
isClosed
public boolean isClosed()- Angegeben von:
isClosed
in Schnittstelleorg.eclipse.net4j.util.collection.Closeable
-