Class ContextHolder
- java.lang.Object
-
- io.smallrye.reactive.messaging.kafka.commit.ContextHolder
-
- Direct Known Subclasses:
KafkaLatestCommit
,KafkaThrottledLatestProcessedCommit
public class ContextHolder extends Object
A class holding a vert.x context to make sure methods are always run from the same one.
-
-
Constructor Summary
Constructors Constructor Description ContextHolder(io.vertx.mutiny.core.Vertx vertx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.vertx.mutiny.core.Context
getContext()
void
runOnContext(Runnable runnable)
-
-
-
Method Detail
-
getContext
public io.vertx.mutiny.core.Context getContext()
-
runOnContext
public void runOnContext(Runnable runnable)
-
-