Package ru.yoomoney.tech.dbqueue.api
Interface QueueProducer<PayloadT>
-
- Type Parameters:
PayloadT- The type of the payload in the task
- All Known Implementing Classes:
MonitoringQueueProducer,ShardingQueueProducer
public interface QueueProducer<PayloadT>Task producer for the queue, which adds a new task into the queue.- Since:
- 10.07.2017
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EnqueueResultenqueue(EnqueueParams<PayloadT> enqueueParams)Add a new task into the queueTaskPayloadTransformer<PayloadT>getPayloadTransformer()Get task payload transformer, which transform the task's payload into the String
-
-
-
Method Detail
-
enqueue
EnqueueResult enqueue(@Nonnull EnqueueParams<PayloadT> enqueueParams)
Add a new task into the queue- Parameters:
enqueueParams- Parameters with typed payload to enqueue the task- Returns:
- Enqueue result
-
getPayloadTransformer
@Nonnull TaskPayloadTransformer<PayloadT> getPayloadTransformer()
Get task payload transformer, which transform the task's payload into the String- Returns:
- Task payload transformer
-
-