Module vcr4j.core

Class LoggingDecorator<S extends VideoState,E extends VideoError>

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

public class LoggingDecorator<S extends VideoState,E extends VideoError> extends Object implements Decorator
Logs the errors, indices, state, and commands for a VideoIO
Since:
2016-01-29T11:13:00
Author:
Brian Schlining
  • Field Details

    • log

      protected final System.Logger log
    • errorSubscriber

      protected final io.reactivex.rxjava3.core.Observer<E extends VideoError> errorSubscriber
    • indexSubscriber

      protected final io.reactivex.rxjava3.core.Observer<VideoIndex> indexSubscriber
    • stateSubscriber

      protected final io.reactivex.rxjava3.core.Observer<S extends VideoState> stateSubscriber
    • commandSubscriber

      protected final io.reactivex.rxjava3.core.Observer<VideoCommand> commandSubscriber
  • Constructor Details

    • LoggingDecorator

      public LoggingDecorator(VideoIO<S,E> io)
  • Method Details

    • 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