of
Returns a node named name that runs body on each input read as inputType and writes its outputType output as JSON. body runs on a thread of dispatcher, by default of Dispatchers.IO without its thread limit, and may send messages before its output with InteropContextView.emit; see NodeBody:
FunctionNodes.of("report", String.class, String.class, myDispatcher, (ctx, city) -> ...);Do not use this method if body runs child nodes with InteropContextView.runNode or InteropContextView.runNodeBlocking; build the node with builder and rerunOnResume(true) instead.
Throws
if Jackson cannot read and write inputType or write outputType, or if a port type has no single concrete JSON shape; a field type Jackson cannot handle fails on the first value instead.
Like of with classes, for generic port types such as List<String>.
Like of with classes, for a generic output type.
Like of with classes, for a generic input type.