Package net.officefloor.reactor
Class ReactorMethodReturnTranslator<R,T>
- java.lang.Object
-
- net.officefloor.reactor.ReactorMethodReturnTranslator<R,T>
-
- All Implemented Interfaces:
MethodReturnTranslator<R,T>
public class ReactorMethodReturnTranslator<R,T> extends java.lang.Object implements MethodReturnTranslator<R,T>
ReactorMethodReturnTranslator
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ReactorMethodReturnTranslator(java.util.function.BiConsumer<R,ManagedFunctionContext<?,?>> subscriber)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
translate(MethodReturnTranslatorContext<R,T> context)
Translates theMethod
return value for nextManagedFunction
argument.
-
-
-
Constructor Detail
-
ReactorMethodReturnTranslator
public ReactorMethodReturnTranslator(java.util.function.BiConsumer<R,ManagedFunctionContext<?,?>> subscriber)
Instantiate.- Parameters:
subscriber
- Undertakes subscription.
-
-
Method Detail
-
translate
public void translate(MethodReturnTranslatorContext<R,T> context) throws java.lang.Exception
Description copied from interface:MethodReturnTranslator
Translates theMethod
return value for nextManagedFunction
argument.- Specified by:
translate
in interfaceMethodReturnTranslator<R,T>
- Parameters:
context
-MethodReturnTranslatorContext
.- Throws:
java.lang.Exception
- If fails to translate.
-
-