Package io.vertx.mutiny.core.streams
Class StreamBase.StreamBaseImpl
java.lang.Object
io.vertx.mutiny.core.streams.StreamBase.StreamBaseImpl
- All Implemented Interfaces:
MutinyDelegate,StreamBase
- Enclosing interface:
- StreamBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.core.streams.StreamBase
StreamBase.StreamBaseImpl -
Constructor Summary
ConstructorsConstructorDescriptionStreamBaseImpl(io.vertx.core.streams.StreamBase delegate) Create a new instance ofStreamBase.StreamBaseImpldelegating to the given (non-null) instance ofStreamBase. -
Method Summary
Modifier and TypeMethodDescriptionexceptionHandler(Consumer<Throwable> handler) Set an exception handler.io.vertx.core.streams.StreamBaseGet the delegate instance.
-
Constructor Details
-
StreamBaseImpl
public StreamBaseImpl(io.vertx.core.streams.StreamBase delegate) Create a new instance ofStreamBase.StreamBaseImpldelegating to the given (non-null) instance ofStreamBase.
-
-
Method Details
-
getDelegate
public io.vertx.core.streams.StreamBase getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Specified by:
getDelegatein interfaceStreamBase- Returns:
- the delegate instance
-
exceptionHandler
Set an exception handler.- Specified by:
exceptionHandlerin interfaceStreamBase- Parameters:
handler- the handler. Can benull.- Returns:
- a reference to this, so the API can be used fluently
-