Class SchedulerDemo

java.lang.Object
org.mbari.vcr4j.examples.udp.SchedulerDemo

public class SchedulerDemo extends Object
This adds a twist to a SimpleDemo. By default, all IO done by a VideoIO object is executed on the calling thread. This is rarely exactly what you want, especially when running VideoIO in a UI. We have a class `SchedulerVideoIO` that decorates any VideoIO object. The SchedulerVideoIO will execute all IO on it's own internal thread. The responses are propagate through the observables on threads determined by an Executor or Scheduler that you provide through it's constructor.
Since:
2016-02-11T16:51:00
Author:
Brian Schlining
  • Constructor Details

    • SchedulerDemo

      public SchedulerDemo()
  • Method Details