Package org.springframework.cassandra.core

Examples of org.springframework.cassandra.core.WriteOptions


    b3.setIsbn("123456-3");
    b3.setTitle("Spring Data Cassandra Guide");
    b3.setAuthor("Cassandra Guru");
    b3.setPages(265);

    WriteOptions options = new WriteOptions();
    options.setTtl(60);
    options.setConsistencyLevel(ConsistencyLevel.ONE);
    options.setRetryPolicy(RetryPolicy.DOWNGRADING_CONSISTENCY);

    template.insert(b3, options);

    Book b5 = new Book();
    b5.setIsbn("123456-5");
View Full Code Here


    b3.setIsbn("123456-3");
    b3.setTitle("Spring Data Cassandra Guide");
    b3.setAuthor("Cassandra Guru");
    b3.setPages(265);

    WriteOptions options = new WriteOptions();
    options.setTtl(60);
    options.setConsistencyLevel(ConsistencyLevel.ONE);
    options.setRetryPolicy(RetryPolicy.DOWNGRADING_CONSISTENCY);

    template.insertAsynchronously(b3, options);

    /*
     * Test Single Insert with entity
View Full Code Here

  }

  @Test
  public void insertBatchTest() {

    WriteOptions options = new WriteOptions();
    options.setTtl(60);
    options.setConsistencyLevel(ConsistencyLevel.ONE);
    options.setRetryPolicy(RetryPolicy.DOWNGRADING_CONSISTENCY);

    List<Book> books = null;

    books = getBookList(20);
View Full Code Here

  }

  @Test
  public void insertBatchAsynchronouslyTest() {

    WriteOptions options = new WriteOptions();
    options.setTtl(60);
    options.setConsistencyLevel(ConsistencyLevel.ONE);
    options.setRetryPolicy(RetryPolicy.DOWNGRADING_CONSISTENCY);

    List<Book> books = null;

    books = getBookList(20);
View Full Code Here

  @Test
  public void updateTest() {

    insertTest();

    WriteOptions options = new WriteOptions();
    options.setTtl(60);
    options.setConsistencyLevel(ConsistencyLevel.ONE);
    options.setRetryPolicy(RetryPolicy.DOWNGRADING_CONSISTENCY);

    /*
     * Test Single Insert with entity
     */
    Book b1 = new Book();
View Full Code Here

  @Test
  public void updateAsynchronouslyTest() {

    insertTest();

    WriteOptions options = new WriteOptions();
    options.setTtl(60);
    options.setConsistencyLevel(ConsistencyLevel.ONE);
    options.setRetryPolicy(RetryPolicy.DOWNGRADING_CONSISTENCY);

    /*
     * Test Single Insert with entity
     */
    Book b1 = new Book();
View Full Code Here

  }

  @Test
  public void updateBatchTest() {

    WriteOptions options = new WriteOptions();
    options.setTtl(60);
    options.setConsistencyLevel(ConsistencyLevel.ONE);
    options.setRetryPolicy(RetryPolicy.DOWNGRADING_CONSISTENCY);

    List<Book> books = null;

    books = getBookList(20);
View Full Code Here

  }

  @Test
  public void updateBatchAsynchronouslyTest() {

    WriteOptions options = new WriteOptions();
    options.setTtl(60);
    options.setConsistencyLevel(ConsistencyLevel.ONE);
    options.setRetryPolicy(RetryPolicy.DOWNGRADING_CONSISTENCY);

    List<Book> books = null;

    books = getBookList(20);
View Full Code Here

  }

  @Test
  public void deleteBatchTest() {

    WriteOptions options = new WriteOptions();
    options.setTtl(60);
    options.setConsistencyLevel(ConsistencyLevel.ONE);
    options.setRetryPolicy(RetryPolicy.DOWNGRADING_CONSISTENCY);

    List<Book> books = null;

    books = getBookList(20);
View Full Code Here

  }

  @Test
  public void deleteBatchAsynchronouslyTest() {

    WriteOptions options = new WriteOptions();
    options.setTtl(60);
    options.setConsistencyLevel(ConsistencyLevel.ONE);
    options.setRetryPolicy(RetryPolicy.DOWNGRADING_CONSISTENCY);

    List<Book> books = null;

    books = getBookList(20);
View Full Code Here

TOP

Related Classes of org.springframework.cassandra.core.WriteOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.