Class NotificationHandler.Builder
java.lang.Object
com.mypurecloud.sdk.v2.extensions.notifications.NotificationHandler.Builder
- Enclosing class:
- NotificationHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()static NotificationHandler.Builderstandard()withApiClient(ApiClient apiClient) withAutoConnect(Boolean connectAsync) withChannel(Channel channel) withNotificationListener(NotificationListener<?> notificationListener) withNotificationListeners(List<NotificationListener<?>> notificationListeners) withNotificationsApi(NotificationsApi notificationsApi) withObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) withProxyHost(String proxyHost) withSocketTimeout(int socketTimeout) withWebSocketListener(WebSocketListener webSocketListener)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
standard
-
withNotificationListener
public NotificationHandler.Builder withNotificationListener(NotificationListener<?> notificationListener) -
withNotificationListeners
public NotificationHandler.Builder withNotificationListeners(List<NotificationListener<?>> notificationListeners) -
withWebSocketListener
-
withChannel
-
withAutoConnect
-
withSocketTimeout
-
withApiClient
-
withNotificationsApi
-
withObjectMapper
public NotificationHandler.Builder withObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
withProxyHost
-
build
public NotificationHandler build() throws IOException, ApiException, com.neovisionaries.ws.client.WebSocketException- Throws:
IOExceptionApiExceptioncom.neovisionaries.ws.client.WebSocketException
-