Interface IPromptConnectionConfig_ConnectTimeout
public interface IPromptConnectionConfig_ConnectTimeout
Mixin for a
prompt query configuration model that allows the user
to configure the connection timeout, i.e. the maximum time to wait for a connection (to the prompt service provider)
to be established.
Use of this mixin is optional, but ensures a consistent name for the property. When different prompt service handlers use the same property name, switching between different prompt service handlers preserves the configured data.
See also the <xp:connectTimeout/> Faces component from the http://www.xima.de/taglib/xfc/prompt
namespace, which provides a user interface for editing the data defined by this mixin.
- Since:
- 8.5.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the connection timeout, i.e. the maximum time to wait for a connection (to the prompt service provider) to be established.voidsetConnectTimeout(Duration connectionTimeout) Sets the connection timeout, i.e. the maximum time to wait for a connection (to the prompt service provider) to be established.
-
Field Details
-
ATTR_CONNECT_TIMEOUT
The name of connection timeout attribute. If you implement a custom serialization / deserialization, use this name for the attribute to increase compatibility with other prompt service handlers.- See Also:
-
-
Method Details
-
getConnectTimeout
Duration getConnectTimeout()Gets the connection timeout, i.e. the maximum time to wait for a connection (to the prompt service provider) to be established.- Returns:
- The connection timeout.
-
setConnectTimeout
Sets the connection timeout, i.e. the maximum time to wait for a connection (to the prompt service provider) to be established.- Parameters:
connectionTimeout- The connection timeout to set.
-