public class MetricsCollectingTaskDecorator extends Object implements ConsumerTask
Constructor and Description |
---|
MetricsCollectingTaskDecorator(ConsumerTask other,
MetricsFactory factory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TaskResult |
call()
Perform task logic.
|
ConsumerTask |
getOther() |
TaskType |
taskType() |
String |
toString() |
public MetricsCollectingTaskDecorator(ConsumerTask other, MetricsFactory factory)
other
- task to report metrics onfactory
- IMetricsFactory to usepublic TaskResult call()
call
in interface Callable<TaskResult>
call
in interface ConsumerTask
public TaskType taskType()
taskType
in interface ConsumerTask
public ConsumerTask getOther()
Copyright © 2019. All rights reserved.