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.InitializingBean
Exception
public boolean exists(LikeNotification notification)
NotificationDao
exists
in interface NotificationDao
notification
- the notificationpublic void save(LikeNotification notification)
NotificationDao
save
in interface NotificationDao
notification
- the notificationCopyright © 2003–2017 Atlassian. All rights reserved.