Interface IPromptConnectionConfig_ConnectTimeout
-
- All Known Implementing Classes:
GenericOaiConnectionConfig
public interface IPromptConnectionConfig_ConnectTimeoutMixin for aprompt query configuration modelthat 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 thehttp://www.xima.de/taglib/xfc/promptnamespace, which provides a user interface for editing the data defined by this mixin.- Since:
- 8.5.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_CONNECT_TIMEOUTThe name of connection timeout attribute.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DurationgetConnectTimeout()Gets 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 Detail
-
ATTR_CONNECT_TIMEOUT
static final String 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:
- Constant Field Values
-
-
Method Detail
-
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
void setConnectTimeout(Duration connectionTimeout)
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.
-
-