![JAR search and dependency download from the Maven repository](/logo.png)
net.openhft.chronicle.queue.impl.single.AsyncBufferCreator Maven / Gradle / Ivy
package net.openhft.chronicle.queue.impl.single;
import net.openhft.chronicle.bytes.BytesStore;
import net.openhft.chronicle.core.util.ThrowingBiFunction;
import org.jetbrains.annotations.NotNull;
import java.io.File;
/**
* Creates a buffer for use in async mode. This is an enterprise feature.
*/
public interface AsyncBufferCreator extends ThrowingBiFunction, Exception> {
@Override
default @NotNull BytesStore, ?> apply(Long size, Integer maxReaders) throws Exception {
throw new UnsupportedOperationException("Call the create function instead");
}
@NotNull BytesStore, ?> create(long size, int maxReaders, File file) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy