Class CassandraQuery

    • Field Detail

      • session

        protected final CqlSession session
        A Cassandra session for use with this query.
      • queryString

        protected final String queryString
      • writeWorkers

        protected final Executor writeWorkers
        Worker threads that read and write from and to Cassandra. Reading and writing are thereby uncoupled from threads calling into this class.
      • readBinaryWorkers

        protected final Executor readBinaryWorkers
    • Constructor Detail

      • CassandraQuery

        protected CassandraQuery()
        For use with RESTeasy and CDI proxies.
        API Note:
        This construtor is used by CDI runtimes that require a public, no-argument constructor. It should not be invoked directly in user code.
      • CassandraQuery

        public CassandraQuery​(CqlSession session,
                              String queryString,
                              ConsistencyLevel consistency)
        Parameters:
        session - a CqlSession to the Cassandra cluster
        queryString - the CQL string for this query
        consistency - the ConsistencyLevel to use for executions of this query