2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.policy.api;
24 * Enumeration of <code>NotificationScheme</code> describes the Notification Scheme that will be used by the PolicyEngine.
28 public enum NotificationScheme {
30 * Notifications for policyUpdates on policy Configs already retrieved
32 AUTO_NOTIFICATIONS("auto_notifications"),
34 * Subscribing to all notifications from the PDP
36 AUTO_ALL_NOTIFICATIONS("auto_all_notifications"),
38 * Client can poll for updates that receive policyUpdates on policy Configs that have already been retrieved
40 MANUAL_NOTIFICATIONS("manual_notifications"),
42 * Client can poll for updates that receive all notifications from the PDP
44 MANUAL_ALL_NOTIFICATIONS("manual_all_notifications")
48 private NotificationScheme(String name){
53 * Returns the <code>String</code> name for this <code>NotificationScheme</code>
55 * @return the <code>String</code> name for this <code>NotificationScheme</code>
58 public String toString(){