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.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 | 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), getHandler() (see how the source wishes to process events), and
Handler.handle(Object) (process the event). |
Modifier and Type | Method and Description |
---|---|
Source<T,S> |
Event.getSource()
Gets the
Source from which this event originated. |
Modifier and Type | Method and Description |
---|---|
Source<OobEvent,SourceType> |
BaseOobEvent.getSource() |
Constructor and Description |
---|
BaseOobEvent(OobEvent.OobEventType type,
Source<OobEvent,SourceType> source)
Default constructor.
|
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 . |
Modifier and Type | Method and Description |
---|---|
Source<NioEvent<?>,SourceType> |
NioEvent.getSource() |
Constructor and Description |
---|
NioEvent(NioEvent.NioEventType type,
Source<NioEvent<?>,SourceType> source)
Alternate constructor.
|
NioEvent(NioEvent.NioEventType type,
T argument,
Source<NioEvent<?>,SourceType> source)
Default constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
TestXmlHandler
A subclass of
XmlHandler for testing purposes. |
Modifier and Type | Method and Description |
---|---|
Source<TestXmlEvent,SourceType> |
TestXmlEvent.getSource() |
Modifier and Type | Method and Description |
---|---|
static TestXmlEvent |
TestXmlEvent.parse(Element rootElement,
Source<TestXmlEvent,SourceType> source)
Parses a
TestXmlEvent from the given root DOM Element . |
protected TestXmlEvent |
TestXmlEvent.TestXmlEventType.parse(Node contentNode,
Source<TestXmlEvent,SourceType> source)
Parses a
TestXmlEvent from the given DOM Node . |
Constructor and Description |
---|
TestXmlEvent.DataXmlEvent(byte[] data,
Source<TestXmlEvent,SourceType> source)
Default constructor.
|
TestXmlEvent.DataXmlEvent(Node contentNode,
Source<TestXmlEvent,SourceType> source)
Alternate constructor.
|
TestXmlEvent.ErrorXmlEvent(Throwable exception,
Source<TestXmlEvent,SourceType> source)
Default constructor.
|
TestXmlEvent.SequenceXmlEvent(long seqNo,
int nMessages,
Source<TestXmlEvent,SourceType> source)
Default constructor.
|
TestXmlEvent.SequenceXmlEvent(Node contentNode,
Source<TestXmlEvent,SourceType> source)
Alternate constructor.
|
TestXmlEvent(TestXmlEvent.TestXmlEventType type,
Source<TestXmlEvent,SourceType> source)
Default constructor.
|