Annotation Type Replaces


  • @Retention(RUNTIME)
    @Target(FIELD)
    @Repeatable(ReplacesList.class)
    public @interface Replaces
    Repeatable annotation for providing old name, converter from old to new type and whether the config parameters we annotate are deprecated and we need to warn the users. (CASSANDRA-17141, CASSANDRA-15234)
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String oldName  
    • Element Detail

      • oldName

        java.lang.String oldName
        Returns:
        old configuration parameter name
      • converter

        Converters converter
        Returns:
        which converter we need depending on the old default unit that was used
        Default:
        org.apache.cassandra.config.Converters.IDENTITY
      • deprecated

        boolean deprecated
        Returns:
        whether the parameter should be marked as deprecated or not and warning sent to the user
        Default:
        false