Package com.newstep.solid.comm
Marker that signals that a particluar address type can be used by a Multiplexor to monitor IO operations
Author:
atomus
Abstract.
Throws:
ChannelException
Abstract.
Provides an abstraction for a communications channel.
Channel clients may exchange information by reading and writing messags on the channel.
Channel reading is passive (via ChannelListener.onMessage()).
The channel interface may be implemented by concrete transport protocol
wrappers/implementations (e.g. TcpChannel, UdpChannel).
Channel is the south bound interface that enables chaining of disparate protocol
functions into a single protocol.
Abstract.
Abstract.
Throws:
ChannelException
Abstract.
Abstract.
Abstract.
Abstract.
Throws:
ChannelException
removeChannelStatusListener
Abstract.
Abstract.
Abstract.
Throws:
ChannelException
ChannelAccessPointListener
Implementors of this interface get notified when a client connects to a listener.
Abstract.
Throws:
ChannelException
Interface provides the contract between Channels and their passive listening clients.
ChannelListener represents a client that waits passively for messages on the channel
Abstract.
The possibles states of a channel
Full name:
com.newstep.solid.comm.ChannelState
Public.
Visibility:
public
| Enumeration Literal Summary |
Visibility:
package
Visibility:
package
Visibility:
package
Visibility:
package
Represents entity that is interested in Channel status changes.
Once an enity that implements ChannelStatusListener registers with a Channel,
it is notified of any change in the channel state.
| Operation Summary |
| statusChanged | Interface that specifies the contract for a status listener. |
Interface that specifies the contract for a status listener.
Abstract.
An entity that handles the IO operations for a channel
Author:
atomus
| Operation Summary |
| onDone | callback for selector closed |
Returns the operations an IOHandler is interested in
Return:
int
Abstract.
OP_ACCEPT ready
Parameters:
key SelectionKey
Abstract.
Throws:
ChannelException
callback for closed channel
Parameters:
channel SelectableChannel
Abstract.
OP_CONNECT ready
Abstract.
Throws:
ChannelException
callback for selector closed
Abstract.
OP_READ ready
Parameters:
key SelectionKey
Abstract.
Throws:
ChannelException
OP_WRITE ready
Abstract.
Throws:
ChannelException