Class AbstractSequentialFile.LocalBufferObserver
- java.lang.Object
-
- org.apache.activemq.artemis.core.io.AbstractSequentialFile.LocalBufferObserver
-
- All Implemented Interfaces:
TimedBufferObserver
- Enclosing class:
- AbstractSequentialFile
protected class AbstractSequentialFile.LocalBufferObserver extends Object implements TimedBufferObserver
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedLocalBufferObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflushBuffer(io.netty.buffer.ByteBuf byteBuf, boolean requestedSync, List<IOCallback> callbacks)It flushesByteBuf.readableBytes()ofbufferwithout changing its reader/writer indexes.
It just usebuffertemporary: it can be reused by the caller right after this call.intgetRemainingBytes()Return the number of remaining bytes that still fit on the observer (file)StringtoString()
-
-
-
Method Detail
-
flushBuffer
public void flushBuffer(io.netty.buffer.ByteBuf byteBuf, boolean requestedSync, List<IOCallback> callbacks)Description copied from interface:TimedBufferObserverIt flushesByteBuf.readableBytes()ofbufferwithout changing its reader/writer indexes.
It just usebuffertemporary: it can be reused by the caller right after this call.- Specified by:
flushBufferin interfaceTimedBufferObserver
-
getRemainingBytes
public int getRemainingBytes()
Description copied from interface:TimedBufferObserverReturn the number of remaining bytes that still fit on the observer (file)- Specified by:
getRemainingBytesin interfaceTimedBufferObserver
-
-