Interface CleanupAnalysisSubmissionCondition
-
- All Known Implementing Classes:
CleanupAnalysisSubmissionConditionAge
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CleanupAnalysisSubmissionCondition
Defines an interface for a condition on whether or not to clean up anAnalysisSubmission
.
-
-
Field Summary
Fields Modifier and Type Field Description static CleanupAnalysisSubmissionCondition
ALWAYS_CLEANUP
Condition which always cleans up analysis submissions.static CleanupAnalysisSubmissionCondition
NEVER_CLEANUP
Condition which never cleans up analysis submissions.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
shouldCleanupSubmission(AnalysisSubmission analysisSubmission)
Whether or not the passedAnalysisSubmission
should be cleaned up.
-
-
-
Field Detail
-
NEVER_CLEANUP
static final CleanupAnalysisSubmissionCondition NEVER_CLEANUP
Condition which never cleans up analysis submissions.
-
ALWAYS_CLEANUP
static final CleanupAnalysisSubmissionCondition ALWAYS_CLEANUP
Condition which always cleans up analysis submissions.
-
-
Method Detail
-
shouldCleanupSubmission
boolean shouldCleanupSubmission(AnalysisSubmission analysisSubmission)
Whether or not the passedAnalysisSubmission
should be cleaned up.- Parameters:
analysisSubmission
- The submission to check.- Returns:
- True if the submission should be cleaned up, false otherwise.
-
-