Module vcr4j.core

Class VCRSyncDecorator<S extends VideoState,E extends VideoError>

java.lang.Object
org.mbari.vcr4j.decorators.VCRSyncDecorator<S,E>
All Implemented Interfaces:
Decorator

public class VCRSyncDecorator<S extends VideoState,E extends VideoError> extends Object implements Decorator
This decorator keeps the state, timecodes, and timestamps up to date by scheduling requests frequently. This is particularly one is handy for keeping UI's up to date with the VCR and is designed for devices that use timecode as their primary index.
Since:
2016-02-02T14:03:00
Author:
Brian Schlining
  • Constructor Details

    • VCRSyncDecorator

      public VCRSyncDecorator(VideoIO<S,E> io)
    • VCRSyncDecorator

      public VCRSyncDecorator(VideoIO<S,E> io, long statusInterval, long timecodeInterval, long timestampInterval)
  • Method Details

    • getTimer

      protected Timer getTimer()
    • unsubscribe

      public void unsubscribe()
      Description copied from interface: Decorator
      Tells the decorator to unsubscribe from all Observables that it is watching.
      Specified by:
      unsubscribe in interface Decorator