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)
SynchronyEvictionDao
findSafeContentWithHistoryOlderThan
in interface SynchronyEvictionDao
public List<Long> findContentWithAnyEventOlderThan(int eventThresholdHours, int limit)
SynchronyEvictionDao
findContentWithAnyEventOlderThan
in interface SynchronyEvictionDao
public List<Long> findContentWithAnySnapshotOlderThan(int snapshotThresholdHours, int limit)
SynchronyEvictionDao
findContentWithAnySnapshotOlderThan
in interface SynchronyEvictionDao
public int removeAllSynchronyDataFor(Collection<Long> contentIds)
SynchronyEvictionDao
removeAllSynchronyDataFor
in interface SynchronyEvictionDao
public long getEventsCount(Long contentId)
getEventsCount
in interface SynchronyEvictionDao
public long getSnapshotsCount(Long contentId)
getSnapshotsCount
in interface SynchronyEvictionDao
public int removeApplicationIds(Collection<String> applicationIds)
removeApplicationIds
in interface SynchronyEvictionDao
Copyright © 2003–2021 Atlassian. All rights reserved.