Class InMemoryEventCollector
java.lang.Object
org.apache.polaris.service.events.listeners.InMemoryEventCollector
- All Implemented Interfaces:
org.apache.polaris.service.events.PolarisEventDispatcher
public class InMemoryEventCollector
extends Object
implements org.apache.polaris.service.events.PolarisEventDispatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voiddispatch(org.apache.polaris.service.events.PolarisEvent event) org.apache.polaris.service.events.PolarisEventgetLatest(org.apache.polaris.service.events.PolarisEventType type) booleanhasListeners(org.apache.polaris.service.events.PolarisEventType polarisEventType)
-
Constructor Details
-
InMemoryEventCollector
public InMemoryEventCollector()
-
-
Method Details
-
clear
public void clear() -
getLatest
public org.apache.polaris.service.events.PolarisEvent getLatest(org.apache.polaris.service.events.PolarisEventType type) -
dispatch
public void dispatch(org.apache.polaris.service.events.PolarisEvent event) - Specified by:
dispatchin interfaceorg.apache.polaris.service.events.PolarisEventDispatcher
-
hasListeners
public boolean hasListeners(org.apache.polaris.service.events.PolarisEventType polarisEventType) - Specified by:
hasListenersin interfaceorg.apache.polaris.service.events.PolarisEventDispatcher
-