Aws sdk for java,dynamo db mapper async

In Amazon Web Services SDK for Java, it is possible to create two different clients for dynamodb: sync and async You can then pass these two objects to the dynamodb mapper constructor Therefore, you should be able to create two different types of dynamodb mapper: synchronous mapper and asynchronous mapper

My question is: how does the asynchronous mapper work? I can't find any method in the asynchronous mapper to return the future object So how can I run multiple queries asynchronously if I have to always wait for the return value of any method of the asynchronous mapper?

thank you

Solution

The asynchronous dynamodb client extends from the synchronous client and provides a new method name for asynchronous operations that return futures Currently, dynamodb mapper will always use the synchronization method of any Amazon dynamodb client you pass in We will use the mapper to treat this feedback as a function request for asynchronous support

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>