Package moe.kyokobot.koe.poller
Class AbstractFramePoller
java.lang.Object
moe.kyokobot.koe.poller.AbstractFramePoller
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
AbstractOpusFramePoller
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.netty.buffer.ByteBufAllocatorprotected final MediaConnectionprotected final io.netty.channel.EventLoopGroupprotected final AtomicBoolean -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
connection
-
eventLoop
protected final io.netty.channel.EventLoopGroup eventLoop -
allocator
protected final io.netty.buffer.ByteBufAllocator allocator -
polling
-
-
Constructor Details
-
AbstractFramePoller
-
-
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:
closein interfaceAutoCloseable
-