Package org.mbari.vcr4j.examples.udp
Class SchedulerDemo
java.lang.Object
org.mbari.vcr4j.examples.udp.SchedulerDemo
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
SchedulerDemo
public SchedulerDemo()
-
-
Method Details
-
main
- Throws:
Exception
-