Class ReceiveSegmentResultDaemon<SEGMENT extends Segment>

java.lang.Object
org.refcodes.serial.ReceiveSegmentResultDaemon<SEGMENT>
Type Parameters:
SEGMENT - The type of the Segment in question.
All Implemented Interfaces:
Runnable

public class ReceiveSegmentResultDaemon<SEGMENT extends Segment> extends Object implements Runnable
A daemon handling SegmentReceiver.onReceiveSegment(Segment) asynchronous calls.
  • Constructor Details

    • ReceiveSegmentResultDaemon

      public ReceiveSegmentResultDaemon(SEGMENT aSegment, SerialTransceiver aSerialTransceiver)
      Instantiates a new receive segment result daemon.
      Parameters:
      aSegment - the segment
      aSerialTransceiver - the serial transceiver
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • getSegmentResult

      public SegmentResult<SEGMENT> getSegmentResult()
      Gets the segment result.
      Returns:
      the segment result