class TaskMetrics {

    public static Sensor droppedRecordsSensorOrExpiredWindowRecordDropSensor(final String threadId,
                                                                             final String taskId,
                                                                             final String storeType,
                                                                             final String storeName,
                                                                             final StreamsMetricsImpl streamsMetrics) {
        if (streamsMetrics.version() == Version.FROM_0100_TO_24) {
            return StateStoreMetrics.expiredWindowRecordDropSensor(taskId, storeType, storeName, streamsMetrics);
        }
        return droppedRecordsSensor(threadId, taskId, streamsMetrics);
    }

    private  TaskMetrics();

}