Interface PolicyListener


@SupportedAll @Deprecated(since="8.0.0", forRemoval=true) public interface PolicyListener
Deprecated, for removal: This API element is subject to removal in a future version.
The interface PolicyListener defines an interface for listeners that would register with policy framework to receive notifications whenever a Policy is added, removed or changed
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the service type name for which this listener wants to get notifications
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    This method is called by the policy framework whenever a policy is added, removed or changed.
  • Method Details

    • getServiceTypeName

      String getServiceTypeName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the service type name for which this listener wants to get notifications
      Returns:
      String representing the service type name.
    • policyChanged

      void policyChanged(PolicyEvent policyEvent)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This method is called by the policy framework whenever a policy is added, removed or changed. The notification is sent only if the policy has any rule that has the serviceTypeName of this listener
      Parameters:
      policyEvent - event object sent by the policy framework
      See Also: