/** * Whether the entry should be considered stale. * This will depend on the type of RMICacheManagerPeerProvider. * This method should be overridden for implementations that go stale based on date * * @param date the date the entry was created * @return true if stale */ protected final boolean stale(Date date) { long now = System.currentTimeMillis(); return date.getTime() < (now - getStaleTime()); }
/** * Whether the entry should be considered stale. * This will depend on the type of RMICacheManagerPeerProvider. * This method should be overridden for implementations that go stale based on date * * @param date the date the entry was created * @return true if stale */ protected final boolean stale(Date date) { long now = System.currentTimeMillis(); return date.getTime() < (now - getStaleTime()); }
/** * Whether the entry should be considered stale. * This will depend on the type of RMICacheManagerPeerProvider. * This method should be overridden for implementations that go stale based on date * * @param date the date the entry was created * @return true if stale */ protected final boolean stale(Date date) { long now = System.currentTimeMillis(); return date.getTime() < (now - getStaleTime()); }
/** * Whether the entry should be considered stale. * This will depend on the type of RMICacheManagerPeerProvider. * This method should be overridden for implementations that go stale based on date * * @param date the date the entry was created * @return true if stale */ protected final boolean stale(Date date) { long now = System.currentTimeMillis(); return date.getTime() < (now - getStaleTime()); }