Package io.kestra.runner.memory
Class MemoryQueue<T>
java.lang.Object
io.kestra.runner.memory.MemoryQueue<T>
- All Implemented Interfaces:
io.kestra.core.queues.QueueInterface<T>,Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryQueue(Class<T> cls, io.micronaut.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidvoidvoidintvoidpause()receive(String consumerGroup, Class<?> queueType, Consumer<io.kestra.core.utils.Either<T, io.kestra.core.exceptions.DeserializationException>> consumer) receive(String consumerGroup, Consumer<io.kestra.core.utils.Either<T, io.kestra.core.exceptions.DeserializationException>> consumer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.kestra.core.queues.QueueInterface
delete, emit, emitAsync, receive, receive
-
Constructor Details
-
MemoryQueue
-
-
Method Details
-
emit
- Specified by:
emitin interfaceio.kestra.core.queues.QueueInterface<T>
-
emitAsync
- Specified by:
emitAsyncin interfaceio.kestra.core.queues.QueueInterface<T>- Throws:
io.kestra.core.queues.QueueException
-
delete
- Specified by:
deletein interfaceio.kestra.core.queues.QueueInterface<T>- Throws:
io.kestra.core.queues.QueueException
-
receive
public Runnable receive(String consumerGroup, Consumer<io.kestra.core.utils.Either<T, io.kestra.core.exceptions.DeserializationException>> consumer) - Specified by:
receivein interfaceio.kestra.core.queues.QueueInterface<T>
-
receive
public Runnable receive(String consumerGroup, Class<?> queueType, Consumer<io.kestra.core.utils.Either<T, io.kestra.core.exceptions.DeserializationException>> consumer) - Specified by:
receivein interfaceio.kestra.core.queues.QueueInterface<T>
-
pause
public void pause()- Specified by:
pausein interfaceio.kestra.core.queues.QueueInterface<T>
-
getSubscribersCount
public int getSubscribersCount() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-