framework: Define service.changecount service property
This service property can be used by a service to announce changes to
some data provided by the service.
@@ -1830,4 +1830,21 @@ public interface Constants {
* @since 1.9
*/
String BUNDLE_SCM = "Bundle-SCM";
+
+ /**
+ * Service property identifying the monotonically increasing change count of
+ * a service.
+ * <p>
+ * A service may optional provide this property to indicate there has been a
+ * change in some data provided by the service. The change count must be
+ * incremented with a positive value every time the data provided by the
+ * service is changed. The service announces the modified change count by
+ * updating its service properties with the new value for this service
+ * property.
+ * <p>
+ * The value of this property must be of type {@code Long}.
+ *
+ * @since 1.9
+ */
+ String SERVICE_CHANGECOUNT = "service.changecount";
}
