Class PolicyDecisionCacheListener

  • All Implemented Interfaces:
    PolicyListener

    public class PolicyDecisionCacheListener
    extends Object
    implements PolicyListener
    The class PolicyDecisionCacheListener implements PolicyListener interface. It listens on for changes in the policies as sent out by the policy framework and cleans up the policy decision cache for affected resources.
    • Constructor Detail

      • PolicyDecisionCacheListener

        public PolicyDecisionCacheListener​(String serviceName)
        Constructor of PolicyDecisionCacheListener
        Parameters:
        serviceName - name of the service for which this object is being created.
    • Method Detail

      • setServiceTypeName

        public void setServiceTypeName​(String name)
        Sets the service name on which this listener listens
        Parameters:
        name - the service name
      • getServiceTypeName

        public String getServiceTypeName()
        The implementation for the PolicyListener interface method gets the service name on which the listener listens.
        Specified by:
        getServiceTypeName in interface PolicyListener
        Returns:
        service name
      • policyChanged

        public void policyChanged​(PolicyEvent evt)
        This is the callback implementation for the PolicyListener which gets called when a policy changes. On getting called this method drops the dirty cache for the affected resources.
        Specified by:
        policyChanged in interface PolicyListener
        Parameters:
        evt - PolicyEvent indicating the resource names which got affected.
        See Also:
        PolicyEvent