public interface CloseablePdpEngine extends PdpEngine, Closeable
Closeable
because it may depend on various components that hold resources such as network resources and caches to get: the root policy or policies referenced by
the root policy; or to get attributes used in the policies from remote sources when not provided in the Request; or to get cached decisions for requests already evaluated in the past, etc.
Therefore, you are required to call Closeable.close()
when you no longer need an instance - especially before replacing with a new instance - in order to make sure these resources are released
properly by each underlying module (e.g. invalidate the attribute caches and/or network resources).evaluate, evaluate, getApplicablePolicies, newRequestBuilder
Copyright © 2012–2020. All rights reserved.