de.smartics.properties.api.core.annotations
Class PropertyLifecycle.UpdateInterval

Package class diagram package PropertyLifecycle.UpdateInterval
java.lang.Object
  extended by de.smartics.properties.api.core.annotations.PropertyLifecycle.UpdateInterval
Enclosing class:
PropertyLifecycle

public static final class PropertyLifecycle.UpdateInterval
     
     
extends Object

Defines constants for the PropertyLifecycle.updateInterval().

Implementation Notes:
This is not an enumeration since the value may specify the times in milliseconds.

Field Summary
static long FIVE_MINUTES
          Defines a standard update interval of five minutes.
static long NO_AUTOMATIC_UPDATE
          The constant to use to indicate that there is no automatic update.
static long NO_CACHING
          The constant to use to indicate that the value should never be cached.
static long ONE_DAY
          Defines a standard update interval of one day.
static long ONE_HOUR
          Defines a standard update interval of one hour.
static long ONE_MINUTE
          Defines a standard update interval of one minute.
static long ONE_SECOND
          Defines a standard update interval of one second.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_AUTOMATIC_UPDATE

public static final long NO_AUTOMATIC_UPDATE
The constant to use to indicate that there is no automatic update.

This is the default value for a read-only property. If the property is read-write this value states that the value is only manually updated. This requires client code to invalidate the value in the cache. This may be a reasonable approach if a value is seldom changed, but when changed should be enforced as soon as possible.

Constant Field Value:
-1L

NO_CACHING

public static final long NO_CACHING
The constant to use to indicate that the value should never be cached. Each access will force the system to read the current value from the storage layer.

Constant Field Value:
0L

ONE_SECOND

public static final long ONE_SECOND
Defines a standard update interval of one second.

Constant Field Value:
1000L

ONE_MINUTE

public static final long ONE_MINUTE
Defines a standard update interval of one minute.

Constant Field Value:
60000L

FIVE_MINUTES

public static final long FIVE_MINUTES
Defines a standard update interval of five minutes.

Constant Field Value:
300000L

ONE_HOUR

public static final long ONE_HOUR
Defines a standard update interval of one hour.

Constant Field Value:
3600000L

ONE_DAY

public static final long ONE_DAY
Defines a standard update interval of one day.

Constant Field Value:
86400000L


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.