org.hibernate.cache.Timestamper Java Examples

The following examples show how to use org.hibernate.cache.Timestamper. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HibernateCacheonixCache.java    From cacheonix-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Generate a timestamp
 */
public long nextTimestamp() {
   // REVIEWME: [email protected] - 2008-01-22 -
   // consider effect of this time stamping mechanism on
   // clustered caches.
   return Timestamper.next();
}
 
Example #2
Source File: HibernateCacheonixCacheProvider.java    From cacheonix-core with GNU Lesser General Public License v2.1 5 votes vote down vote up
/**
 * Generate a timestamp
 */
public long nextTimestamp() {
   // REVIEWME: simeshev - 2008-02-17 - Currently it uses
   // local time stamper. Consider effect of it in a
   // clustered environment.
   return Timestamper.next();
}
 
Example #3
Source File: J2CacheProvider.java    From J2Cache with Apache License 2.0 4 votes vote down vote up
@Override
public long nextTimestamp() {
    return Timestamper.next();
}
 
Example #4
Source File: J2HibernateCache.java    From J2Cache with Apache License 2.0 4 votes vote down vote up
@Override
public long nextTimestamp() {
    return Timestamper.next();
}
 
Example #5
Source File: SpringEhCacheProvider.java    From Lottery with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Returns the next timestamp.
 */
public final long nextTimestamp() {
	return Timestamper.next();
}