Package net.officefloor.reactor
Class AbstractSubscription<T>
- java.lang.Object
-
- net.officefloor.reactor.AbstractSubscription<T>
-
- Direct Known Subclasses:
FluxSubscription,MonoSubscription
public abstract class AbstractSubscription<T> extends java.lang.ObjectAbstractMethodReturnTranslator.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description AbstractSubscription(ManagedFunctionContext<?,?> context)Instantiate.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaddSuccess(T success)Adds the success.java.lang.RunnablegetCompletion()Obtains the completion.java.util.function.Consumer<? super java.lang.Throwable>getError()Obtain the errorConsumer.protected abstract java.lang.ObjectgetNextFunctionArgument()Obtains the nextManagedFunctionargument.java.util.function.Consumer<? super T>getSuccess()Obtains the successConsumer.
-
-
-
Constructor Detail
-
AbstractSubscription
public AbstractSubscription(ManagedFunctionContext<?,?> context)
Instantiate.- Parameters:
context-ManagedFunctionContext.
-
-
Method Detail
-
addSuccess
protected abstract void addSuccess(T success)
Adds the success.- Parameters:
success- Success.
-
getNextFunctionArgument
protected abstract java.lang.Object getNextFunctionArgument()
Obtains the nextManagedFunctionargument.- Returns:
- Next
ManagedFunctionargument.
-
getSuccess
public java.util.function.Consumer<? super T> getSuccess()
Obtains the successConsumer.- Returns:
- Success
Consumer.
-
getError
public java.util.function.Consumer<? super java.lang.Throwable> getError()
Obtain the errorConsumer.- Returns:
- Error
Consumer.
-
getCompletion
public java.lang.Runnable getCompletion()
Obtains the completion.- Returns:
- Completion.
-
-