Package net.officefloor.reactor
Class MonoSubscription<T>
- java.lang.Object
-
- net.officefloor.reactor.AbstractSubscription<T>
-
- net.officefloor.reactor.MonoSubscription<T>
-
public class MonoSubscription<T> extends AbstractSubscription<T>
Mono
subscription.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MonoSubscription(ManagedFunctionContext<?,?> context)
Instantiate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addSuccess(T success)
Adds the success.protected java.lang.Object
getNextFunctionArgument()
Obtains the nextManagedFunction
argument.static <T> void
subscribe(reactor.core.publisher.Mono<T> mono, ManagedFunctionContext<?,?> context)
Subscribes to theMono
.-
Methods inherited from class net.officefloor.reactor.AbstractSubscription
getCompletion, getError, getSuccess
-
-
-
-
Constructor Detail
-
MonoSubscription
public MonoSubscription(ManagedFunctionContext<?,?> context)
Instantiate.- Parameters:
context
-ManagedFunctionContext
.
-
-
Method Detail
-
subscribe
public static <T> void subscribe(reactor.core.publisher.Mono<T> mono, ManagedFunctionContext<?,?> context)
Subscribes to theMono
.- Type Parameters:
T
- Success type.- Parameters:
mono
-Mono
.context
-ManagedFunctionContext
.
-
addSuccess
protected void addSuccess(T success)
Description copied from class:AbstractSubscription
Adds the success.- Specified by:
addSuccess
in classAbstractSubscription<T>
- Parameters:
success
- Success.
-
getNextFunctionArgument
protected java.lang.Object getNextFunctionArgument()
Description copied from class:AbstractSubscription
Obtains the nextManagedFunction
argument.- Specified by:
getNextFunctionArgument
in classAbstractSubscription<T>
- Returns:
- Next
ManagedFunction
argument.
-
-