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 -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckSync(boolean syncRequested, List<IOCallback> callbacks) voidflushBuffer(io.netty.buffer.ByteBuf byteBuf, boolean requestedSync, List<IOCallback> callbacks) It flushesByteBuf.readableBytes()ofbufferwithout changing its reader/writer indexes.intReturn the number of remaining bytes that still fit on the observer (file)booleantoString()
-
Constructor Details
-
LocalBufferObserver
protected LocalBufferObserver()
-
-
Method Details
-
supportSync
public boolean supportSync()- Specified by:
supportSyncin interfaceTimedBufferObserver
-
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 use
buffertemporary: it can be reused by the caller right after this call.- Specified by:
flushBufferin interfaceTimedBufferObserver
-
checkSync
- Specified by:
checkSyncin 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
-
toString
-