|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.net4j.util.event.Notifier
org.eclipse.net4j.util.lifecycle.Lifecycle
org.eclipse.spi.net4j.Channel

If the meaning of this type isn't clear, there really should be more of a description here...
| Nested Class Summary | |
|---|---|
protected class |
Channel.ReceiverWork
If the meaning of this type isn't clear, there really should be more of a description here... |
protected class |
Channel.ReceiveSerializer
If the meaning of this type isn't clear, there really should be more of a description here... |
protected class |
Channel.SendQueue
A queue that holds buffers that shall be sent. |
| Nested classes/interfaces inherited from interface org.eclipse.spi.net4j.InternalChannel |
|---|
InternalChannel.SendQueueEvent |
| Nested classes/interfaces inherited from interface org.eclipse.net4j.ILocationAware |
|---|
ILocationAware.Location |
| Nested classes/interfaces inherited from interface org.eclipse.net4j.buffer.IBufferProvider |
|---|
IBufferProvider.Introspection |
| Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle |
|---|
ILifecycle.DeferrableActivation |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle |
|---|
USE_LABEL |
| Constructor Summary | |
|---|---|
Channel()
|
|
| Method Summary | |
|---|---|
void |
close()
|
protected Channel.ReceiverWork |
createReceiverWork(IBuffer buffer)
|
protected void |
doActivate()
|
protected void |
doBeforeActivate()
|
protected void |
doDeactivate()
|
short |
getBufferCapacity()
Returns the capacity of the buffers provided by IBufferProvider.provideBuffer() . |
short |
getID()
Returns the ID of this channel. |
ILocationAware.Location |
getLocation()
Returns the location of this object in a client/server scenario. |
IChannelMultiplexer |
getMultiplexer()
Returns the multiplexer this channel is associated with. |
long |
getReceivedBuffers()
|
ExecutorService |
getReceiveExecutor()
|
IBufferHandler |
getReceiveHandler()
Returns the IBufferHandler that handles buffers received from the peer channel. |
Queue<IBuffer> |
getSendQueue()
|
long |
getSentBuffers()
|
String |
getUserID()
|
void |
handleBuffer(IBuffer buffer)
Handles the given buffer. |
void |
handleBufferFromMultiplexer(IBuffer buffer)
Handles a buffer sent by the multiplexer. |
boolean |
isClient()
Same as . |
boolean |
isClosed()
|
boolean |
isServer()
Same as . |
IBuffer |
provideBuffer()
Provides a buffer from this BufferProvider. |
void |
retainBuffer(IBuffer buffer)
Retains a buffer to this BufferProvider. |
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)
|
void |
setReceiveHandler(IBufferHandler receiveHandler)
Sets the IBufferHandler to handle buffers received from the peer channel. |
void |
setUserID(String userID)
|
String |
toString()
|
protected void |
unregisterFromMultiplexer()
|
| Methods inherited from class org.eclipse.net4j.util.lifecycle.Lifecycle |
|---|
activate, checkActive, checkArg, checkArg, checkInactive, checkNull, checkState, checkState, deactivate, deferredActivate, doAfterActivate, doBeforeDeactivate, dump, getLifecycleState, isActive, isDeferredActivation |
| Methods inherited from class org.eclipse.net4j.util.event.Notifier |
|---|
addListener, fireEvent, fireEvent, fireEvent, fireThrowable, firstListenerAdded, getListeners, getNotificationService, hasListeners, lastListenerRemoved, removeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle |
|---|
activate, deactivate, getLifecycleState, isActive |
| Methods inherited from interface org.eclipse.net4j.util.event.INotifier |
|---|
addListener, getListeners, hasListeners, removeListener |
| Constructor Detail |
|---|
public Channel()
| Method Detail |
|---|
public String getUserID()
getUserID in interface IUserAwarepublic void setUserID(String userID)
setUserID in interface InternalChannelpublic ILocationAware.Location getLocation()
ILocationAwareclient/server scenario.
getLocation in interface ILocationAwarepublic boolean isClient()
ILocationAwareILocationAware.getLocation() == ILocationAware.Location.CLIENT.
isClient in interface ILocationAwarepublic boolean isServer()
ILocationAwareILocationAware.getLocation() == ILocationAware.Location.SERVER.
isServer in interface ILocationAwarepublic IChannelMultiplexer getMultiplexer()
IChannel
getMultiplexer in interface IChannelpublic void setMultiplexer(IChannelMultiplexer channelMultiplexer)
setMultiplexer in interface InternalChannelpublic short getID()
IChannelmultiplexer.
getID in interface IChannelpublic void setID(short id)
setID in interface InternalChannelpublic ExecutorService getReceiveExecutor()
getReceiveExecutor in interface InternalChannelpublic void setReceiveExecutor(ExecutorService receiveExecutor)
setReceiveExecutor in interface InternalChannelpublic IBufferHandler getReceiveHandler()
IChannelIBufferHandler that handles buffers received from the peer channel.
getReceiveHandler in interface IChannelpublic void setReceiveHandler(IBufferHandler receiveHandler)
IChannelIBufferHandler to handle buffers received from the peer channel.
setReceiveHandler in interface IChannelpublic long getSentBuffers()
getSentBuffers in interface InternalChannelpublic long getReceivedBuffers()
getReceivedBuffers in interface InternalChannelpublic Queue<IBuffer> getSendQueue()
getSendQueue in interface InternalChannelpublic void sendBuffer(IBuffer buffer)
IChannel
sendBuffer in interface IChannelpublic void handleBuffer(IBuffer buffer)
handleBuffer in interface IBufferHandlerbuffer - The buffer to be handled and otionally released.IBuffer.getState(),
BufferState.PUTTING,
sendQueuepublic void handleBufferFromMultiplexer(IBuffer buffer)
handleBufferFromMultiplexer in interface InternalChannelInternalChannelMultiplexer.multiplexChannel(org.eclipse.spi.net4j.InternalChannel),
IWorkSerializer,
Channel.ReceiverWorkprotected Channel.ReceiverWork createReceiverWork(IBuffer buffer)
public short getBufferCapacity()
IBufferProviderIBufferProvider.provideBuffer() .
getBufferCapacity in interface IBufferProviderpublic IBuffer provideBuffer()
IBufferProviderBufferProvider.
provideBuffer in interface IBufferProviderpublic void retainBuffer(IBuffer buffer)
IBufferProviderBufferProvider.
retainBuffer in interface IBufferProviderpublic String toString()
toString in class Lifecycle
protected void doBeforeActivate()
throws Exception
doBeforeActivate in class LifecycleException
protected void doActivate()
throws Exception
doActivate in class LifecycleException
protected void doDeactivate()
throws Exception
doDeactivate in class LifecycleExceptionprotected void unregisterFromMultiplexer()
public void close()
close in interface Closeablepublic boolean isClosed()
isClosed in interface Closeable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||