Class AppProfile.SingleClusterRoutingPolicy

    • Method Detail

      • of

        public static AppProfile.SingleClusterRoutingPolicy of​(String clusterId)
        Builds a new instance of the routing policy that will send all requests to the specified cluster.

        Please note that atomic row transactions will be disabled.

      • of

        public static AppProfile.SingleClusterRoutingPolicy of​(String clusterId,
                                                               boolean allowTransactionWrites)
        Builds a new instance of the routing policy that will send all requests to the specified cluster. This variant enables the ability to re-enable single row transactions at the cost of consistency.

        Please see the online documentation for more details.

      • getClusterId

        public String getClusterId()
        Gets the target cluster of this policy.
      • getAllowTransactionalWrites

        public boolean getAllowTransactionalWrites()
        Checks if transactional writes are enabled.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object