|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tomgibara.pronto.logging.DefaultLoggingPolicy
public class DefaultLoggingPolicy
The logging policy that is used if no policy has been specified.
| Constructor Summary | |
|---|---|
DefaultLoggingPolicy()
|
|
| Method Summary | |
|---|---|
com.tomgibara.pronto.util.Duration |
getPollingPeriod()
This value is determined by value of the property pronto.logging.polling-period. |
boolean |
isTimestampNewer(long newTimestamp,
long oldTimestamp)
The default implementation returns true iff newTimestamp > oldTimestamp. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultLoggingPolicy()
| Method Detail |
|---|
public com.tomgibara.pronto.util.Duration getPollingPeriod()
getPollingPeriod in interface LoggingPolicy
public boolean isTimestampNewer(long newTimestamp,
long oldTimestamp)
isTimestampNewer in interface LoggingPolicynewTimestamp - the new timestampoldTimestamp - the previous timestamp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||