Package org.openmetadata.service.events
Class EventPubSub
java.lang.Object
org.openmetadata.service.events.EventPubSub
Change event PubSub built based on LMAX Disruptor.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.lmax.disruptor.BatchEventProcessor<EventPubSub.ChangeEventHolder>addEventHandler(com.lmax.disruptor.EventHandler<EventPubSub.ChangeEventHolder> eventHandler) voidclose()static voidpublish(ChangeEvent event) static voidremoveProcessor(com.lmax.disruptor.BatchEventProcessor<EventPubSub.ChangeEventHolder> processor) static voidshutdown()static voidstart()
-
Constructor Details
-
EventPubSub
public EventPubSub()
-
-
Method Details
-
start
public static void start() -
shutdown
- Throws:
InterruptedException
-
publish
-
addEventHandler
public static com.lmax.disruptor.BatchEventProcessor<EventPubSub.ChangeEventHolder> addEventHandler(com.lmax.disruptor.EventHandler<EventPubSub.ChangeEventHolder> eventHandler) -
removeProcessor
public static void removeProcessor(com.lmax.disruptor.BatchEventProcessor<EventPubSub.ChangeEventHolder> processor) -
close
public void close()
-