Class RotateResult

java.lang.Object
org.codice.alliance.video.stream.mpegts.netty.RotateResult

public class RotateResult extends Object
This is a POJO that contains the result of a file rotation request. If a rotation occurred, then getFile() will return an Optional that contains the File for the rotated file. If a rotation occurred because of a timeout, then isTimeout() will return TRUE.
  • Constructor Details

    • RotateResult

      public RotateResult(@Nullable File file, boolean isTimeout)
      Parameters:
      file - the rotated file, may be null
      isTimeout - true if rotation occurred because of timeout
  • Method Details

    • getFile

      public Optional<File> getFile()
    • isTimeout

      public boolean isTimeout()