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
ObservablePayloadSectionimplements theObservableinterface 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).TheObservablePayloadSectionclass enriches aPayloadSectiondecoratee with observer functionality as of theObservablePayloadSectioninterface.TheObservablePayloadSegmentimplements theObservableinterface 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).TheObservablePayloadSegmentclass enriches aPayloadSegmentdecoratee with observer functionality as of theObservablePayloadSegmentinterface.TheObservablePayloadTransmissionimplements theObservableinterface in order to fire events upon a value being received/assigned.ObservableSection<T extends org.refcodes.serial.Section>TheObservableSectionimplements theObservableinterface 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>TheObservableSectionclass enriches aSectiondecoratee with observer functionality as of theObservableSectioninterface.ObservableSegment<T extends org.refcodes.serial.Segment>TheObservableSegmentimplements theObservableinterface 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>TheObservableSegmentclass enriches aSegmentdecoratee with observer functionality as of theObservableSegmentinterface.Declarative syntactic sugar which may be statically imported in order to allow declarative definitions for the construction of observable variousSegmentorSectiontype instances (and the like).ObservableTransmission<T extends org.refcodes.serial.Transmission>TheObservableTransmissionimplements theObservableinterface in order to fire events upon a finished transmission.PayloadEvent<P>ThePayloadEventgets triggered byObservablePayloadTransmissioninstances such as theObservablePayloadSegmentDecoratoror theObservablePayloadSectionDecoratorupon a payload being received.ThePayloadObserverprovides means to get signaled byPayloadEventinstances published by an according subscribedObservablePayloadTransmission.TransmissionEvent<T extends org.refcodes.serial.Transmission>TheTransmissionEventgets triggered byObservableTransmissioninstances such as theObservableSegmentDecoratoror theObservableSectionDecoratorupon a transmission being received.TransmissionObserver<T extends org.refcodes.serial.Transmission>TheTransmissionObserverprovides means to get signaled byTransmissionEventinstances published by an according subscribedObservableTransmission.