Class CoordinatedWriteConf


  • public class CoordinatedWriteConf
    extends java.lang.Object
    Data class containing the configurations required for coordinated write. The serialization format is JSON string. The class takes care of serialization and deserialization.
    • Method Detail

      • create

        public static <T extends CoordinatedWriteConf.ClusterConfCoordinatedWriteConf create​(java.lang.String json,
                                                                                               ConsistencyLevel.CL consistencyLevel,
                                                                                               java.lang.Class<T> clusterConfType)
        Parse JSON string and create a CoordinatedWriteConf object with the specified ClusterConfProvider format
        Type Parameters:
        T - subtype of ClusterConfProvider
        Parameters:
        json - JSON string
        clusterConfType - concrete type of ClusterConfProvider that can be used for JSON serialization and deserialization
        Returns:
        CoordinatedWriteConf object
      • toJson

        public java.lang.String toJson()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object