Search in sources :

Example 1 with CacheKeyInfo

use of org.onebusaway.container.cache.CacheKeyInfo in project onebusaway-application-modules by camsys.

the class ArrivalsAndDeparturesQueryBeanCacheableObjectKeyFactory method createKey.

@Override
public CacheKeyInfo createKey(Object object) {
    ArrivalsAndDeparturesQueryBean query = (ArrivalsAndDeparturesQueryBean) object;
    query = new ArrivalsAndDeparturesQueryBean(query);
    query.setTime(snapTime(query.getTime()));
    return new CacheKeyInfo(query, false);
}
Also used : CacheKeyInfo(org.onebusaway.container.cache.CacheKeyInfo) ArrivalsAndDeparturesQueryBean(org.onebusaway.transit_data.model.ArrivalsAndDeparturesQueryBean)

Aggregations

CacheKeyInfo (org.onebusaway.container.cache.CacheKeyInfo)1 ArrivalsAndDeparturesQueryBean (org.onebusaway.transit_data.model.ArrivalsAndDeparturesQueryBean)1