RefreshResourceCacheSynchronously

Refresh the cache on a resource synchronously.

Location

/lib/resource/

Syntax

RefreshResourceCacheSynchronously "path" "type"

Inputs

path: The path to the resource, or the cache policy name, enclosed in double-quotes.

type: The type of the resource (TABLE or POLICY), enclosed in double-quotes.

pollingInterval: An optional parameter denoting how frequently (timed in milliseconds) to poll for the cache refresh outcome. The default value is 1 second.

Outputs

N/A

Exceptions

RuntimeException: If the cache refresh fails.

IllegalArgumentException: If the path is malformed or an illegal type is provided.

IllegalStateException: If the cache is disabled.

NotAllowedException: If the resource type does not support caching. Only SQL_TABLE resources support caching.

NotFoundException: If the resource or any portion of the path to the resource does not exist.

SecurityException: If the user does not have READ access on all items in the path other than the last one.

SecurityException: If the user does not have WRITE access to the last item in path.