Package net.bluemind.lib.vertx.utils
Class MemfdWriteStream
java.lang.Object
net.bluemind.lib.vertx.utils.MemfdWriteStream
- All Implemented Interfaces:
io.vertx.core.streams.StreamBase
,io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
public class MemfdWriteStream
extends Object
implements io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.vertx.core.streams.WriteStream
<io.vertx.core.buffer.Buffer> drainHandler
(io.vertx.core.Handler<Void> handler) io.vertx.core.Future
<Void> end()
void
io.vertx.core.streams.WriteStream
<io.vertx.core.buffer.Buffer> exceptionHandler
(io.vertx.core.Handler<Throwable> handler) CompletableFuture
<net.bluemind.jna.utils.OffHeapTemporaryFile> result()
io.vertx.core.streams.WriteStream
<io.vertx.core.buffer.Buffer> setWriteQueueMaxSize
(int maxSize) io.vertx.core.Future
<Void> write
(io.vertx.core.buffer.Buffer data) void
write
(io.vertx.core.buffer.Buffer data, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vertx.core.streams.WriteStream
end, end
-
Constructor Details
-
MemfdWriteStream
public MemfdWriteStream()
-
-
Method Details
-
result
-
exceptionHandler
public io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> exceptionHandler(io.vertx.core.Handler<Throwable> handler) - Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.StreamBase
- Specified by:
exceptionHandler
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
write
- Specified by:
write
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
write
public void write(io.vertx.core.buffer.Buffer data, io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler) - Specified by:
write
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
end
- Specified by:
end
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
end
- Specified by:
end
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
setWriteQueueMaxSize
public io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> setWriteQueueMaxSize(int maxSize) - Specified by:
setWriteQueueMaxSize
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
writeQueueFull
public boolean writeQueueFull()- Specified by:
writeQueueFull
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-
drainHandler
public io.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer> drainHandler(io.vertx.core.Handler<Void> handler) - Specified by:
drainHandler
in interfaceio.vertx.core.streams.WriteStream<io.vertx.core.buffer.Buffer>
-