Package | Description |
---|---|
org.shared.event |
A framework for event-driven programming.
|
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 | Interface and Description |
---|---|
interface |
Source<T extends Event<T,?,S>,S extends Enum<S>>
Defines an originator of
Event s. |
Modifier and Type | Class and Description |
---|---|
class |
EventProcessor<T extends Event<T,E,S>,E extends Enum<E>,S extends Enum<S>>
A thread going through the event processing motions
BlockingQueue.take() (fetch), Event.getSource()
(see who it's from), Source.getHandler() (see how the source wishes to process events), and
Handler.handle(Object) (process the event). |
Modifier and Type | Class and Description |
---|---|
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 | Class and Description |
---|---|
class |
NioConnection
An abstract asynchronous sockets class internally managed by
NioManager . |
class |
NioManagerDispatchThread
A specialized
NioManagerThread that dispatches newly created connections to NioManagerIoThread s. |
class |
NioManagerIoThread
A specialized
NioManagerThread that reads from and writes to connections. |
class |
NioManagerThread
An abstract base class for
NioManager service threads. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractTestVerifier<T extends Event<T,TestXmlEvent.TestXmlEventType,SourceType>>
An implementation of
SourceLocal that serves as a base class for checking the contents of incoming events
against their expected values. |
protected static class |
AbstractTestVerifier.AbstractReceiverVerifier<T extends Event<T,TestXmlEvent.TestXmlEventType,SourceType>>
A subclass of
AbstractTestVerifier that maintains receiver state. |
protected static class |
AbstractTestVerifier.AbstractSenderVerifier<T extends Event<T,TestXmlEvent.TestXmlEventType,SourceType>>
A subclass of
AbstractTestVerifier that maintains sender state. |
protected static class |
TestXmlEvent.ReceiverXmlVerifier
An instantiation of
AbstractTestVerifier.AbstractReceiverVerifier . |
protected static class |
TestXmlEvent.SenderXmlVerifier
An instantiation of
AbstractTestVerifier.AbstractSenderVerifier . |
class |
TestXmlHandler
A subclass of
XmlHandler for testing purposes. |
Constructor and Description |
---|
TestXmlHandler(String name,
int minimumSize,
int maximumSize,
SourceLocal<TestXmlEvent> receiver)
Default constructor.
|