@NotThreadSafe protected static class

DefaultAttachmentIndexManager.TotalLengthPredicate

extends Object
implements Predicate<T>
java.lang.Object
   ↳ com.atlassian.jira.issue.managers.DefaultAttachmentIndexManager.TotalLengthPredicate

Class Overview

JSONs are saved to the database by EntityProperty mechanism maximum length of whole index is EXTREMELY_LONG_MAXIMUM_LENGTH. In very rare cases the index could contain less than 100 entries but still longer content than allowed.

This mutable predicate checks if current json can be added to the array.

Summary

Protected Constructors
TotalLengthPredicate(long maxLength)
Public Methods
boolean apply(JSONObject json)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.common.base.Predicate

Protected Constructors

protected TotalLengthPredicate (long maxLength)

Public Methods

public boolean apply (JSONObject json)