Package kafka.server.share
Class ShareFetchUtils
java.lang.Object
kafka.server.share.ShareFetchUtils
Utility class for post-processing of share fetch operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intrecordLockDurationMsOrDefault(org.apache.kafka.coordinator.group.GroupConfigManager groupConfigManager, String groupId, int defaultValue) The method is used to get the record lock duration for the group.
-
Constructor Details
-
ShareFetchUtils
public ShareFetchUtils()
-
-
Method Details
-
recordLockDurationMsOrDefault
public static int recordLockDurationMsOrDefault(org.apache.kafka.coordinator.group.GroupConfigManager groupConfigManager, String groupId, int defaultValue) The method is used to get the record lock duration for the group. If the group config is present, then the record lock duration is returned. Otherwise, the default value is returned.- Parameters:
groupConfigManager- The group config manager.groupId- The group id for which the record lock duration is to be fetched.defaultValue- The default value to be returned if the group config is not present.- Returns:
- The record lock duration for the group.
-