Interface CommentsMaxCountProvider
- All Known Implementing Classes:
DefaultCommentsMaxCountProvider
public interface CommentsMaxCountProvider
Provides the maximum number of comments to include in various contexts.
This is used to determine limits for comment serialization in different scenarios.
- Since:
- 10.3.13
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntegerDefault value, that can be used while implementinggetMaxCommentsCount()static final StringThe limit relates to the webhook payloads that uses this provider under the hood and can't be passed by any context due to how beans are serialized in webhooks. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the maximum number of comments that should be included during serialization process.
-
Field Details
-
DEFAULT_COMMENTS_PAGE_SIZE
Default value, that can be used while implementinggetMaxCommentsCount() -
EMBEDDED_COMMENTS_BACKGROUND_LIMIT_APPLICATION_PROPERTIES_KEY
The limit relates to the webhook payloads that uses this provider under the hood and can't be passed by any context due to how beans are serialized in webhooks. The desired approach is to make this implementation more flexible in the future.- See Also:
-
-
Method Details
-
getMaxCommentsCount
int getMaxCommentsCount()Returns the maximum number of comments that should be included during serialization process.- Returns:
- the maximum number of comments to include
-