Class AsyncContextFunction
java.lang.Object
org.apache.pulsar.functions.api.examples.AsyncContextFunction
- All Implemented Interfaces:
org.apache.pulsar.functions.api.Function<String,CompletableFuture<Void>>
public class AsyncContextFunction
extends Object
implements org.apache.pulsar.functions.api.Function<String,CompletableFuture<Void>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.functions.api.Function
close, initialize
-
Constructor Details
-
AsyncContextFunction
public AsyncContextFunction()
-
-
Method Details
-
process
public CompletableFuture<Void> process(String input, org.apache.pulsar.functions.api.Context context) - Specified by:
processin interfaceorg.apache.pulsar.functions.api.Function<String,CompletableFuture<Void>>
-