Package org.gcube.event.publisher
Class BufferedEventProcessor
- java.lang.Object
-
- org.gcube.event.publisher.BufferedEventProcessor
-
public class BufferedEventProcessor extends Object
-
-
Constructor Summary
Constructors Constructor Description BufferedEventProcessor(String conductorEndpoint, String clientId, String clientSecret, String keycloakTokenEndpoint, java.util.function.Function<Event,String> logInfoGenerator)BufferedEventProcessor(String conductorEndpoint, String clientId, String clientSecret, String keycloakTokenEndpoint, java.util.function.Function<Event,String> logInfoGenerator, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanallQueuedFinishedCorrectly()voidenqueueEvent(Event event)intgetCount()intgetErrors()longgetMax()longgetMin()
-
-
-
Constructor Detail
-
BufferedEventProcessor
public BufferedEventProcessor(String conductorEndpoint, String clientId, String clientSecret, String keycloakTokenEndpoint, java.util.function.Function<Event,String> logInfoGenerator) throws EventProcessorException
- Throws:
EventProcessorException
-
BufferedEventProcessor
public BufferedEventProcessor(String conductorEndpoint, String clientId, String clientSecret, String keycloakTokenEndpoint, java.util.function.Function<Event,String> logInfoGenerator, int bufferSize) throws EventProcessorException
- Throws:
EventProcessorException
-
-
Method Detail
-
enqueueEvent
public void enqueueEvent(Event event) throws InterruptedException
- Throws:
InterruptedException
-
allQueuedFinishedCorrectly
public Boolean allQueuedFinishedCorrectly()
-
getCount
public int getCount()
-
getMin
public long getMin()
-
getMax
public long getMax()
-
getErrors
public int getErrors()
-
-