Package com.basho.riak.client.core.operations

Examples of com.basho.riak.client.core.operations.FetchOperation.await()


        cluster.execute(operation);
       
        try
        {
            operation.await();
            assertFalse(operation.isSuccess());
            assertNotNull(operation.cause());
        }
        finally
        {
View Full Code Here


                new FetchOperation.Builder(location)
                        .build();
           
            boolean accepted = node.execute(operation);
            assertTrue(accepted);
            operation.await();
            assertFalse(operation.isSuccess());
        }
       
        Thread.sleep(2000);
        assertEquals(State.HEALTH_CHECKING, node.getNodeState());
View Full Code Here

        FetchOperation operation =
            new FetchOperation.Builder(location)
                    .build();
       
        boolean accepted = node.execute(operation);
        operation.await();
        assertFalse(operation.isSuccess());
        assertNotNull(operation.cause());
        node.shutdown().get();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.