Package net.officefloor.cache.constant
Class ConstantCacheManagedObjectSource<K,V>
- java.lang.Object
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<O,F>
-
- net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource<net.officefloor.frame.api.build.None,ConstantCacheManagedObjectSource.Flows>
-
- net.officefloor.cache.constant.ConstantCacheManagedObjectSource<K,V>
-
- All Implemented Interfaces:
net.officefloor.frame.api.managedobject.ManagedObject,net.officefloor.frame.api.managedobject.source.ManagedObjectSource<net.officefloor.frame.api.build.None,ConstantCacheManagedObjectSource.Flows>
public class ConstantCacheManagedObjectSource<K,V> extends net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource<net.officefloor.frame.api.build.None,ConstantCacheManagedObjectSource.Flows> implements net.officefloor.frame.api.managedobject.ManagedObject
CacheManagedObjectSourcethat loads a constant data set.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConstantCacheManagedObjectSource.FlowsFlow keys.-
Nested classes/interfaces inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource
net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource.DependencyLabeller<K extends java.lang.Enum<K>>, net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource.ExecutionLabeller, net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource.Labeller<K extends java.lang.Enum<K>>, net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource.MetaDataContext<O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>, net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource.SpecificationContext
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDATA_RETRIEVER_QUALIFIERQualifier for theConstantCacheDataRetrieverdependency.static java.lang.StringPOLL_INTERVALPropertyname for the poll interval in milliseconds.
-
Constructor Summary
Constructors Constructor Description ConstantCacheManagedObjectSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.officefloor.cache.Cache<K,V>getCache()Obtains theCache.protected net.officefloor.frame.api.managedobject.ManagedObjectgetManagedObject()java.lang.ObjectgetObject()protected voidloadMetaData(net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource.MetaDataContext<net.officefloor.frame.api.build.None,ConstantCacheManagedObjectSource.Flows> context)protected voidloadSpecification(net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource.SpecificationContext context)====================== ManagedObjectSource ==========================voidstart(net.officefloor.frame.api.managedobject.source.ManagedObjectExecuteContext<ConstantCacheManagedObjectSource.Flows> context)-
Methods inherited from class net.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource
sourceManagedObject
-
-
-
-
Field Detail
-
POLL_INTERVAL
public static final java.lang.String POLL_INTERVAL
Propertyname for the poll interval in milliseconds.- See Also:
- Constant Field Values
-
DATA_RETRIEVER_QUALIFIER
public static final java.lang.String DATA_RETRIEVER_QUALIFIER
Qualifier for theConstantCacheDataRetrieverdependency.- See Also:
- Constant Field Values
-
-
Method Detail
-
loadSpecification
protected void loadSpecification(net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource.SpecificationContext context)
====================== ManagedObjectSource ==========================- Specified by:
loadSpecificationin classnet.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<net.officefloor.frame.api.build.None,ConstantCacheManagedObjectSource.Flows>
-
loadMetaData
protected void loadMetaData(net.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource.MetaDataContext<net.officefloor.frame.api.build.None,ConstantCacheManagedObjectSource.Flows> context) throws java.lang.Exception
- Specified by:
loadMetaDatain classnet.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<net.officefloor.frame.api.build.None,ConstantCacheManagedObjectSource.Flows>- Throws:
java.lang.Exception
-
start
public void start(net.officefloor.frame.api.managedobject.source.ManagedObjectExecuteContext<ConstantCacheManagedObjectSource.Flows> context) throws java.lang.Exception
- Specified by:
startin interfacenet.officefloor.frame.api.managedobject.source.ManagedObjectSource<K,V>- Overrides:
startin classnet.officefloor.frame.api.managedobject.source.impl.AbstractAsyncManagedObjectSource<net.officefloor.frame.api.build.None,ConstantCacheManagedObjectSource.Flows>- Throws:
java.lang.Exception
-
getManagedObject
protected net.officefloor.frame.api.managedobject.ManagedObject getManagedObject() throws java.lang.Throwable- Specified by:
getManagedObjectin classnet.officefloor.frame.api.managedobject.source.impl.AbstractManagedObjectSource<net.officefloor.frame.api.build.None,ConstantCacheManagedObjectSource.Flows>- Throws:
java.lang.Throwable
-
getObject
public java.lang.Object getObject() throws java.lang.Throwable- Specified by:
getObjectin interfacenet.officefloor.frame.api.managedobject.ManagedObject- Throws:
java.lang.Throwable
-
-