이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 7. The Asynchronous API
7.1. About the Asynchronous API 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
In addition to synchronous API methods, JBoss Data Grid also offers an asynchronous API that provides the same functionality in a non-blocking fashion.
The asynchronous method naming convention is similar to their synchronous counterparts, with
Async
appended to each method name. Asynchronous methods return a Future that contains the result of the operation.
For example, in a cache parameterized as
Cache(String, String)
, Cache.put(String key, String value)
returns a String, while Cache.putAsync(String key, String value)
returns a Future(String)
.