下面列出了怎么用org.hibernate.cache.Timestamper的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* 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();
}
/**
* 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();
}
@Override
public long nextTimestamp() {
return Timestamper.next();
}
@Override
public long nextTimestamp() {
return Timestamper.next();
}
/**
* Returns the next timestamp.
*/
public final long nextTimestamp() {
return Timestamper.next();
}