Package | Description |
---|---|
org.shared.event |
A framework for event-driven programming.
|
org.shared.net.filter |
A package of networking I/O filters.
|
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 |
Event<T extends Event<T,E,S>,E extends Enum<E>,S extends Enum<S>>
Defines functionality that can be expected from all events.
|
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), getSource()
(see who it's from), Source.getHandler() (see how the source wishes to process events), and
Handler.handle(Object) (process the event). |
interface |
Source<T extends Event<T,?,S>,S extends Enum<S>>
Defines an originator of
Event s. |
interface |
SourceLocal<T extends Event<T,?,?>>
Defines the local manifestation of an originator
Event s. |
interface |
SourceRemote<T extends Event<T,?,?>>
Defines the local manifestation of an originator
Event s. |
class |
StateTable<X extends Enum<X>,Y extends Enum<Y>,Z extends Event<Z,Y,?>>
A finite state machine class.
|
Modifier and Type | Interface and Description |
---|---|
interface |
XmlEvent<T extends XmlEvent<T,E,S>,E extends Enum<E>,S extends Enum<S>>
Defines an XML-derived
Event . |
Modifier and Type | Interface and Description |
---|---|
interface |
OobEvent
Defines an
Event for conveying out-of-band information that doesn't belong in data. |
Modifier and Type | Class and Description |
---|---|
class |
BaseOobEvent
A minimal implementation of
OobEvent that can be subclassed into user-defined events. |
Modifier and Type | Class and Description |
---|---|
class |
NioEvent<T>
An internal event class for
NioConnection and NioManager . |
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. |
Modifier and Type | Class and Description |
---|---|
class |
TestXmlEvent
A base class of all XML-derived events for testing purposes.
|
protected static class |
TestXmlEvent.DataXmlEvent
A subclass of
TestXmlEvent for carrying data. |
protected static class |
TestXmlEvent.ErrorXmlEvent
A subclass of
TestXmlEvent for carrying errors. |
protected static class |
TestXmlEvent.SequenceXmlEvent
A subclass of
TestXmlEvent for holding sequence numbers. |