org.gcube.application.framework.contentmanagement.cache.factories
Class MetadataCacheEntryFactory
java.lang.Object
org.gcube.application.framework.contentmanagement.cache.factories.MetadataCacheEntryFactory
- All Implemented Interfaces:
- net.sf.ehcache.constructs.blocking.CacheEntryFactory
public class MetadataCacheEntryFactory
- extends Object
- implements net.sf.ehcache.constructs.blocking.CacheEntryFactory
- Author:
- Valia Tsagkalidou (NKUA)
|
Field Summary |
protected static AtomicInteger |
mcId
An atomic integer to get the CMS EPRs round-robin |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mcId
protected static AtomicInteger mcId
- An atomic integer to get the CMS EPRs round-robin
MetadataCacheEntryFactory
public MetadataCacheEntryFactory()
createEntry
public Object createEntry(Object key)
throws Exception
- Specified by:
createEntry in interface net.sf.ehcache.constructs.blocking.CacheEntryFactory
- Parameters:
key - a QueryString representing pairs of keys and values. Needed keys are "vre", "metadataColID", "oid"
- Returns:
- the metadata object of the corresponding ID
- Throws:
Exception
Copyright © 2013. All Rights Reserved.