|
Sea 0.4.0 | ||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
gov.lbl.dsd.sea.nio
package.
See:
Description
Class Summary | |
AdminRequest | Administrative request to an agent. |
AdminRequest.Start | Requests an agent to start running. |
AdminRequest.Stop | Requests an agent to shut down. |
ChannelRequest | Requests an agent to perform some action on a given channel. |
ChannelRequest.Close | Requests an agent to close the given channel. |
ChannelRequest.Register | Requests an agent to register the given
SelectionKey interest ops with the given
channel; The agent will enqueue future responses to the channel onto the
given observer stage; If an attachment is given the agent will attach it to the channel's key. |
ChannelRequest.WriteData | Requests an agent to completely write ALL of the bytes in the given buffer
to the given channel; As usual with NIO, the data is contained between
indexes buffer.position() and buffer.limit() ,
and buffer.remaining() bytes will be written; |
ChannelResponse | Response from an agent to a prior ChannelRequest.Register or
ChannelRequest.Close or ChannelRequest.WriteData request;
Contains the agent this response originates from, as well as the selection key
of the channel the request/response are associated with (retrievable via
key.channel() ), as well as an optional exception that may
have been thrown by the agent in attempting to handle the associated prior
request. |
ChannelResponse.Accepted | Indicates that an agent has accepted a new channel from a network client
(originally initiated by a ChannelRequest.Register request containing
SelectionKey OP_ACCEPT ops). |
ChannelResponse.Closed | Indicates that an agent has closed a channel (originally initiated by a
ChannelRequest.Close request). |
ChannelResponse.Connected | Indicates that an agent has connected to a network server (originally
initiated by a ChannelRequest.Register request containing
SelectionKey OP_CONNECT ops). |
ChannelResponse.Read | Contains a buffer with the non-blocking data read from the given channel
(originally initiated by a prior ChannelRequest.Register request
containing SelectionKey OP_READ ops); The data
has buffer.remaining() bytes, and is contained between
indexes 0 == buffer.position() and buffer.limit() ,
as usual with NIO; A buffer with !buffer.hasRemaining()
indicates that end-of-stream has been reached for the given channel. |
ChannelResponse.Registered | Indicates response is to a prior ChannelRequest.Register request;
The interest ops supplied to the original request can be retrieved from
the response via response.getInterestOps() . |
ChannelResponse.Write | Contains a buffer with the data fully written to the given
channel (originally initiated by a prior ChannelRequest.WriteData
request). |
Request and response events for non-blocking network agents
from the gov.lbl.dsd.sea.nio
package.
|
Sea 0.4.0 | ||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |