Annotation Interface UseDistributedSystemId


@Target(TYPE) @Retention(RUNTIME) @Inherited @Documented @Import(DistributedSystemIdConfiguration.class) public @interface UseDistributedSystemId
The UseDistributedSystemId annotation configures the distributed-system-id property of a peer Cache member in an Apache Geode P2P topology. This configuration annotation is only applicable on peer Cache members and has no effect on ClientCache instances.
Since:
1.0.0
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    Configures the identifier used to distinguish messages from different distributed systems.
    int
    Configures the identifier used to distinguish messages from different distributed systems.
  • Element Details

    • value

      @AliasFor("id") int value
      Configures the identifier used to distinguish messages from different distributed systems. This is required for Portable Data eXchange (PDX) data serialization. Set distributed-system-id to different values for different systems in a multi-site (WAN) configuration, and to different values for production vs. development environments. This setting must be the same for every member of a given distributed system and unique to each distributed system within a WAN installation. Valid values are integers in the range -1…255. -1 means no setting. Defaults to -1.
      Default:
      -1
    • id

      @AliasFor("value") int id
      Configures the identifier used to distinguish messages from different distributed systems. Alias for #value().
      Default:
      -1