Package org.refcodes.serial.ext.observer
package org.refcodes.serial.ext.observer
This artifact extends the refcodes-serial
artifact with event driven observable functionality.
Please refer to the refcodes-serial: A serial communication toolkit for Java documentation for an up-to-date and detailed description on the usage of this artifact.
-
ClassDescriptionThe
ObservablePayloadSection
implements theObservable
interface in order to fire events upon a value being received/assigned (as ofSection.receiveFrom(java.io.InputStream, int, java.io.OutputStream)
orSection.fromTransmission(org.refcodes.serial.Sequence, int)
or the like).TheObservablePayloadSection
class enriches aPayloadSection
decoratee with observer functionality as of theObservablePayloadSection
interface.TheObservablePayloadSegment
implements theObservable
interface in order to fire events upon a value being received/assigned (as ofSegment.receiveFrom(java.io.InputStream, java.io.OutputStream)
orSegment.fromTransmission(org.refcodes.serial.Sequence)
or the like).TheObservablePayloadSegment
class enriches aPayloadSegment
decoratee with observer functionality as of theObservablePayloadSegment
interface.TheObservablePayloadTransmission
implements theObservable
interface in order to fire events upon a value being received/assigned.ObservableSection<T extends org.refcodes.serial.Section>TheObservableSection
implements theObservable
interface in order to fire events upon a transmission being received (as ofSection.receiveFrom(java.io.InputStream, int, java.io.OutputStream)
orSection.fromTransmission(org.refcodes.serial.Sequence, int)
or the like).ObservableSectionDecorator<DECORATEE extends org.refcodes.serial.Section>TheObservableSection
class enriches aSection
decoratee with observer functionality as of theObservableSection
interface.ObservableSegment<T extends org.refcodes.serial.Segment>TheObservableSegment
implements theObservable
interface in order to fire events upon a transmission being received (as ofSegment.receiveFrom(java.io.InputStream, java.io.OutputStream)
orSegment.fromTransmission(org.refcodes.serial.Sequence)
or the like).ObservableSegmentDecorator<DECORATEE extends org.refcodes.serial.Segment>TheObservableSegment
class enriches aSegment
decoratee with observer functionality as of theObservableSegment
interface.Declarative syntactic sugar which may be statically imported in order to allow declarative definitions for the construction of observable variousSegment
orSection
type instances (and the like).ObservableTransmission<T extends org.refcodes.serial.Transmission>TheObservableTransmission
implements theObservable
interface in order to fire events upon a finished transmission.PayloadEvent<P>ThePayloadEvent
gets triggered byObservablePayloadTransmission
instances such as theObservablePayloadSegmentDecorator
or theObservablePayloadSectionDecorator
upon a payload being received.ThePayloadObserver
provides means to get signaled byPayloadEvent
instances published by an according subscribedObservablePayloadTransmission
.SerialEvent<SRC>TheSerialEvent
is the base event for events belonging to this package.TransmissionEvent<T extends org.refcodes.serial.Transmission>TheTransmissionEvent
gets triggered byObservableTransmission
instances such as theObservableSegmentDecorator
or theObservableSectionDecorator
upon a transmission being received.TransmissionObserver<T extends org.refcodes.serial.Transmission>TheTransmissionObserver
provides means to get signaled byTransmissionEvent
instances published by an according subscribedObservableTransmission
.