See {@link AsyncResult} for more information about how to handle anasynchronous query.
If the entry is being updated then this method will block until it has been updated, or the timeout period has elapsed.
If the timeout is not {@link Period#INDEFINITELY} and the entryrequires updating then a timer is started that will cause the update to fail if it has not been completed before the specified timeout period has elapsed.
It is strongly recommended that a limited timeout, i.e. not {@link Period#INDEFINITELY} is specified to prevent blocking of queriesin the event that the update could not be completed successfully. This is especially important if the caller does not maintain control for the whole period between invoking this method and completing the update.
@param key The key that identifies the entry to retrieve. @param timeout The maximum time to spend updating an entry, or waitingfor the entry to be updated. @return The result of the query.
|
|
|
|
|
|