Class InMemoryBufferEventListener
java.lang.Object
org.apache.polaris.service.events.listeners.PolarisPersistenceEventListener
org.apache.polaris.service.events.listeners.inmemory.InMemoryBufferEventListener
- All Implemented Interfaces:
PolarisEventListener
@ApplicationScoped
@Identifier("persistence-in-memory-buffer")
public class InMemoryBufferEventListener
extends PolarisPersistenceEventListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected final classWraps aUnicastProcessortogether with its own lock, so that mutual exclusion betweenonNext(fromprocessEvent(java.lang.String, org.apache.polaris.core.entity.EventEntity)) andonComplete(from eviction or shutdown) does not depend on smallrye-mutiny's internalsynchronizedonUnicastProcessor.onNext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProcessor(String realmId) protected voidprotected voidonFlushError(String realmId, List<org.apache.polaris.core.entity.EventEntity> events, Throwable error) protected voidonProcessorError(String realmId, Throwable error) protected voidprocessEvent(String realmId, org.apache.polaris.core.entity.EventEntity event) voidshutdown()Methods inherited from class org.apache.polaris.service.events.listeners.PolarisPersistenceEventListener
onEvent
-
Constructor Details
-
InMemoryBufferEventListener
public InMemoryBufferEventListener()
-
-
Method Details
-
createProcessor
-
processEvent
- Specified by:
processEventin classPolarisPersistenceEventListener
-
shutdown
@PreDestroy public void shutdown() -
flush
-
onFlushError
-
onProcessorError
-