Class AbstractFramePoller

java.lang.Object
moe.kyokobot.koe.poller.AbstractFramePoller
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
AbstractOpusFramePoller

public abstract class AbstractFramePoller extends Object implements AutoCloseable
  • Field Details

    • connection

      protected final MediaConnection connection
    • eventLoop

      protected final io.netty.channel.EventLoopGroup eventLoop
    • allocator

      protected final io.netty.buffer.ByteBufAllocator allocator
    • polling

      protected final AtomicBoolean polling
  • Constructor Details

    • AbstractFramePoller

      public AbstractFramePoller(@NotNull MediaConnection connection)
  • Method Details

    • isPolling

      public boolean isPolling()
    • start

      public void start()
    • stop

      public void stop()
    • getFrameIntervalNanos

      protected abstract long getFrameIntervalNanos()
    • pollAndSend

      protected abstract boolean pollAndSend()
    • getTotalFrames

      public long getTotalFrames()
    • getDroppedFrames

      public long getDroppedFrames()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable