Class FetchableCacheImpl
- java.lang.Object
- 
- com.inductiveautomation.perspective.gateway.comm.FetchableCacheImpl
 
- 
- All Implemented Interfaces:
- FetchableCache
 
 public class FetchableCacheImpl extends java.lang.Object implements FetchableCache 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.inductiveautomation.perspective.gateway.api.FetchableCacheFetchableCache.Fetchable
 
- 
 - 
Constructor SummaryConstructors Constructor Description FetchableCacheImpl(com.codahale.metrics.MetricRegistry registry)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaddFetchable(Session session, FetchableCache.Fetchable fetchable)Place some fetchable data into the cache.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.perspective.gateway.api.FetchableCacheaddFetchable, addFetchable
 
- 
 
- 
- 
- 
Method Detail- 
addFetchablepublic java.lang.String addFetchable(Session session, FetchableCache.Fetchable fetchable) Description copied from interface:FetchableCachePlace some fetchable data into the cache.- Specified by:
- addFetchablein interface- FetchableCache
- Parameters:
- session- The session that this data belongs to. Only requests from this session will be able to use the resulting URL.
- fetchable- The handler that will handle the GET request.
- Returns:
- A URL string to be used by a front-end request to retrieve the fetchable data. This URL will expire in
 5 minutes or immediately after access, whichever is first. The URL will be relative to the root, e.g.
 /data/perspective/myProject/uuid
 
 
- 
 
-