public class DefaultSynchronyEvictionDao extends Object implements SynchronyEvictionDao
| Constructor and Description |
|---|
DefaultSynchronyEvictionDao(org.hibernate.SessionFactory sessionFactory) |
| 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) |
public DefaultSynchronyEvictionDao(org.hibernate.SessionFactory sessionFactory)
public List<Long> findSafeContentWithHistoryOlderThan(int synchronyThresholdHours, int draftThresholdHours, int limit)
SynchronyEvictionDaofindSafeContentWithHistoryOlderThan in interface SynchronyEvictionDaopublic List<Long> findContentWithAnyEventOlderThan(int eventThresholdHours, int limit)
SynchronyEvictionDaofindContentWithAnyEventOlderThan in interface SynchronyEvictionDaopublic List<Long> findContentWithAnySnapshotOlderThan(int snapshotThresholdHours, int limit)
SynchronyEvictionDaofindContentWithAnySnapshotOlderThan in interface SynchronyEvictionDaopublic int removeAllSynchronyDataFor(Collection<Long> contentIds)
SynchronyEvictionDaoremoveAllSynchronyDataFor in interface SynchronyEvictionDaopublic long getEventsCount(Long contentId)
getEventsCount in interface SynchronyEvictionDaopublic long getSnapshotsCount(Long contentId)
getSnapshotsCount in interface SynchronyEvictionDaopublic int removeApplicationIds(Collection<String> applicationIds)
removeApplicationIds in interface SynchronyEvictionDaoCopyright © 2003–2021 Atlassian. All rights reserved.