public class CacheBackedNotificationDao extends Object implements NotificationDao, org.springframework.beans.factory.InitializingBean
Given the current key implementation and a max cache size of 10,000, a full cache consumes about ~4.5Mb of heap. (See ehcache.xml for configuration.)
| Constructor and Description |
|---|
CacheBackedNotificationDao(com.atlassian.vcache.VCacheFactory cacheFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
boolean |
exists(LikeNotification notification)
Returns true if the specified notification exists, false otherwise.
|
void |
save(LikeNotification notification)
Persist the specified notification.
|
public CacheBackedNotificationDao(com.atlassian.vcache.VCacheFactory cacheFactory)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic boolean exists(LikeNotification notification)
NotificationDaoexists in interface NotificationDaonotification - the notificationpublic void save(LikeNotification notification)
NotificationDaosave in interface NotificationDaonotification - the notificationCopyright © 2003–2023 Atlassian. All rights reserved.