Package | Description |
---|---|
org.shared.net |
A framework for transparent, scalable networking with asynchronous sockets.
|
org.shared.net.filter |
A package of networking I/O filters.
|
org.shared.net.handler |
A package of
ConnectionHandler implementations. |
org.shared.net.nio |
A package for managed connections built on top of
java.nio . |
org.shared.test.net |
A suite of tests for asynchronous networking.
|
Modifier and Type | Method and Description |
---|---|
<T> Future<C> |
ConnectionManager.init(ConnectionManager.InitializationType type,
ConnectionHandler<? super C> handler,
T argument)
Initializes a
Connection . |
Modifier and Type | Class and Description |
---|---|
class |
ChainFilterFactory<I,O,H extends ConnectionHandler<?>>
An implementation of
FilterFactory that enables chaining of multiple underlying FilterFactory s. |
interface |
FilterFactory<F extends Filter<I,O>,I,O,H extends ConnectionHandler<?>>
Defines a factory for creating
Filter s. |
Modifier and Type | Method and Description |
---|---|
Filter<ByteBuffer,ByteBuffer> |
FrameFilterFactory.newFilter(ConnectionHandler<?> handler) |
Filter<Element,ByteBuffer> |
XmlFilterFactory.newFilter(ConnectionHandler<?> handler) |
OobFilter<T,T> |
IdentityFilterFactory.newFilter(ConnectionHandler<?> handler) |
Modifier and Type | Interface and Description |
---|---|
interface |
FilteredHandler<H extends FilteredHandler<H,C,T>,C extends Connection,T>
Defines a
ConnectionHandler that uses Filter s to process inbound and outbound data. |
interface |
OobHandler<C extends Connection>
Defines a
ConnectionHandler that can react to user-defined OobEvent s. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractFilteredHandler<H extends AbstractFilteredHandler<H,C,T>,C extends Connection,T>
An abstract base class implementing much of
FilteredHandler . |
class |
SynchronousHandler<C extends Connection>
A subclass of
AbstractFilteredHandler with synchronous behavior. |
class |
XmlHandler<H extends XmlHandler<H,C,T,S>,C extends Connection,T extends XmlEvent<T,?,S>,S extends Enum<S>>
A null-terminated packet protocol for reading and writing
XmlEvent s. |
Modifier and Type | Method and Description |
---|---|
<T> Future<NioConnection> |
NioManager.init(ConnectionManager.InitializationType type,
ConnectionHandler<? super NioConnection> handler,
T argument) |
Constructor and Description |
---|
NioConnection(ConnectionHandler<? super NioConnection> handler,
int bufferSize,
NioManagerThread thread)
Default constructor.
|
Modifier and Type | Class and Description |
---|---|
protected static class |
ClientServerTest.Utf8Handler
An internal
Connection class for demo purposes. |
class |
TestXmlHandler
A subclass of
XmlHandler for testing purposes. |