ICassandraConfiguration.cs 872 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. namespace Abc.Zebus.Persistence.Cassandra.Cql
  3. {
  4. public interface ICassandraConfiguration
  5. {
  6. /// <summary>
  7. /// The space separated list of hosts to connect to
  8. /// </summary>
  9. string Hosts { get; }
  10. /// <summary>
  11. /// The Keyspace where the Directory schema is stored
  12. /// </summary>
  13. string KeySpace { get; }
  14. /// <summary>
  15. /// Time after which a query will be retried on another node
  16. /// </summary>
  17. TimeSpan QueryTimeout { get; }
  18. /// <summary>
  19. /// Name of the local datacenter, this allows the CQL driver to favor local nodes
  20. /// (since the nodes provides in Hosts are only contact nodes and that the driver
  21. /// will discover the rest of the cluster)
  22. /// </summary>
  23. string LocalDataCenter { get; }
  24. }
  25. }