Examples of indexAsync()


Examples of indextype.Index1Type1.indexAsync()

                Index1Type1 index1Type1Bis = new Index1Type1("2", "name2", "category", new Date());
                index1Type1Bis.location = location;

                F.Promise<IndexResponse> promise1 = index1Type1.indexAsync();
                F.Promise<IndexResponse> promise2 = index1Type1Bis.indexAsync();

                F.Promise<List<IndexResponse>> promise = F.Promise.sequence(promise1, promise2);
                List<IndexResponse> indexResponses = promise.get(10L, TimeUnit.SECONDS);
                assertThat(indexResponses.size()).isEqualTo(2);
            }
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.