public boolean shouldPause() {
        return this.targetState == TargetState.PAUSED;
    }
Remove all metrics published by this task.
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerTask.java