Class PollingWaitCallback.PollingWaitCallbackBuilder
java.lang.Object
org.forgerock.openam.authentication.callbacks.PollingWaitCallback.PollingWaitCallbackBuilder
- Enclosing class:
- PollingWaitCallback
Builder object for the PollingWaitCallback.
-
Method Summary
Modifier and TypeMethodDescriptionasCopyOf
(PollingWaitCallback callback) Sets the default values to use for the new PollingWaitCallback from an existing PollingWaitCallback Object.build()
finalise the construction process and return the completed PollingWaitCallback Object.withMessage
(String message) Set the user message for the new PollingWaitCallback Object.withWaitTime
(String waitTime) Set the wait time for the new PollingWaitCallback Object.
-
Method Details
-
withWaitTime
Set the wait time for the new PollingWaitCallback Object.- Parameters:
waitTime
- the waitTime to use- Returns:
- this builder
-
withMessage
Set the user message for the new PollingWaitCallback Object.- Parameters:
message
- the message to display- Returns:
- this builder
-
asCopyOf
@Supported public PollingWaitCallback.PollingWaitCallbackBuilder asCopyOf(PollingWaitCallback callback) Sets the default values to use for the new PollingWaitCallback from an existing PollingWaitCallback Object.- Parameters:
callback
- the callback to copy- Returns:
- this builder
-
build
finalise the construction process and return the completed PollingWaitCallback Object.- Returns:
- a new PollingWaitCallback object
-