|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LoggingPolicy
Logging policies parameterize the operation of LoggingConfig
instances. Note that the values returned from a policy object may be live.
This means that they may change their values between successive calls to the
same method.
Calls to the methods of this interface are externally synchronized by the
LoggingConfig instance that it configures.
| Method Summary | |
|---|---|
com.tomgibara.pronto.util.Duration |
getPollingPeriod()
This method should return the length of time that should elapse between the polling of configuration properties. |
boolean |
isTimestampNewer(long newTimestamp,
long oldTimestamp)
This method is called to identify whether the change in the timestamp associated with a set of configuration properties represents a change in the properties. |
| Method Detail |
|---|
com.tomgibara.pronto.util.Duration getPollingPeriod()
boolean isTimestampNewer(long newTimestamp,
long oldTimestamp)
newTimestamp - the latest timestamp reported by a ConfigSourceoldTimestamp - the previous timestamp reported by a ConfigSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||