@FunctionalInterface public interface IChannelTask
IChannelTask acts as processor for queued IMessages or as service.| Modifier and Type | Method and Description |
|---|---|
default void |
configure(IChannel queue,
String id,
IPropertyBlock propertyBlock,
ITaskControl taskControl)
invoked one time at initialization of this task
|
void |
run(IChannelTaskContext taskContext)
run this task, invoked by channel-worker.
|
default void configure(IChannel queue, String id, IPropertyBlock propertyBlock, ITaskControl taskControl)
queue - parent-IChannelid - registration-id of this taskpropertyBlock - properties for this tasktaskControl - state-handler for this taskvoid run(IChannelTaskContext taskContext) throws Exception
context - of task runningExceptionCopyright © 2020. All rights reserved.