Class ClusterServersConfig

    • Constructor Detail

      • ClusterServersConfig

        public ClusterServersConfig()
    • Method Detail

      • addNodeAddress

        public ClusterServersConfig addNodeAddress(String... addresses)
        Add Redis cluster node address. Use follow format -- host:port
        Parameters:
        addresses - in host:port format
        Returns:
        config
      • getNodeAddresses

        public List<String> getNodeAddresses()
      • setNodeAddresses

        public void setNodeAddresses(List<String> nodeAddresses)
      • getScanInterval

        public int getScanInterval()
      • setScanInterval

        public ClusterServersConfig setScanInterval(int scanInterval)
        Redis cluster scan interval in milliseconds

        Default is 5000

        Parameters:
        scanInterval - in milliseconds
        Returns:
        config
      • isCheckSlotsCoverage

        public boolean isCheckSlotsCoverage()
      • setCheckSlotsCoverage

        public ClusterServersConfig setCheckSlotsCoverage(boolean checkSlotsCoverage)
        Enables cluster slots check during Redisson startup.

        Default is true

        Parameters:
        checkSlotsCoverage - - boolean value
        Returns:
        config
      • getNatMapper

        public NatMapper getNatMapper()