Package org.openmetadata.service.events
Class EventPubSub
- java.lang.Object
-
- org.openmetadata.service.events.EventPubSub
-
public class EventPubSub extends Object
Change event PubSub built based on LMAX Disruptor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventPubSub.ChangeEventFactorystatic classEventPubSub.ChangeEventHolderstatic classEventPubSub.DefaultExceptionHandler
-
Constructor Summary
Constructors Constructor Description EventPubSub()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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()
-
-
-
Method Detail
-
start
public static void start()
-
shutdown
public static void shutdown() throws InterruptedException- Throws:
InterruptedException
-
publish
public static void publish(ChangeEvent event)
-
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()
-
-