Annotation Type CMPFieldReplication
-
@Retention(RUNTIME) @Target(METHOD) @Documented public @interface CMPFieldReplication
Annotation that can be used to control the replication behaviour of a CMP field.
This annotation may be used on:
-
an SBB abstract class CMP field getter or setter method.
-
an SBB or SBB part CMP extension interface CMP field getter or setter method.
If replication of a CMP field is suppressed by this annotation then the state of that CMP field is excluded from the replicated state stream if and when replication occurs. In the event that the CMP state of an SBB entity is retrieved from a replicated storage resource then CMP fields with their replication suppressed will revert to the initial value defined by their
@InitialValueField
annotation, if present, otherwise the default initial value for the field type.This annotation does not affect the
pass-by-reference
semantics of a CMP field. Pass-by-reference semantics determine serialisation behaviour between application code and the local memory database on the same cluster node. CMP field replication behaviour determines the serialisation behaviour between the local memory databases of different cluster nodes.- Since:
- Rhino 2.6.1
-
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
suppressed
Boolean flag indicating whether or not replication of the CMP field should be suppressed.
-