public interface SynchronyEvictionDao
Modifier and Type | Method and Description |
---|---|
List<Long> |
findContentWithAnyEventOlderThan(int eventThresholdHours,
int limit)
Get at most content ids from synchrony events table, for each at least one event
is older than hours from now.
|
List<Long> |
findContentWithAnySnapshotOlderThan(int snapshotThresholdHours,
int limit)
Get at most content ids from synchrony snapshot table, for each at least one event
is older than hours from now.
|
List<Long> |
findSafeContentWithHistoryOlderThan(int synchronyThresholdHours,
int draftThresholdHours,
int limit)
Get at most content ids from synchrony tables, for each all events are older than
hours from now.
|
long |
getEventsCount(Long contentId) |
long |
getSnapshotsCount(Long contentId) |
int |
removeAllSynchronyDataFor(Collection<Long> contentIds)
Remove all synchrony data matching
|
int |
removeApplicationIds(Collection<String> applicationIds) |
void |
removeContentProperties() |
@Transactional(readOnly=true) List<Long> findSafeContentWithHistoryOlderThan(int synchronyThresholdHours, int draftThresholdHours, int limit)
@Transactional(readOnly=true) List<Long> findContentWithAnyEventOlderThan(int eventThresholdHours, int limit)
@Transactional(readOnly=true) List<Long> findContentWithAnySnapshotOlderThan(int snapshotThresholdHours, int limit)
@Transactional(propagation=REQUIRES_NEW) int removeAllSynchronyDataFor(Collection<Long> contentIds)
@Transactional(readOnly=true) long getEventsCount(Long contentId)
@Transactional(readOnly=true) long getSnapshotsCount(Long contentId)
@Transactional(propagation=REQUIRES_NEW) int removeApplicationIds(Collection<String> applicationIds)
@Transactional(propagation=REQUIRES_NEW) void removeContentProperties()
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences