- Enclosing interface:
ConnectionRequest
public static interface ConnectionRequest.Builder
A builder for ConnectionRequest
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceSpecifies the client typestatic interfaceSpecifies the connection user -
Method Summary
Modifier and TypeMethodDescriptionbuild()connectionId(UUID connectionId) Specifies the client locale, for a request built on behalf of a client running in another JVM, by default the locale of the JVM building the request.Specifies the client time zone, for a request built on behalf of a client running in another JVM, by default the time zone of the JVM building the request.
-
Method Details
-
connectionId
- Parameters:
connectionId- the connection id, a randomUUIDby default- Returns:
- this Builder instance
-
version
- Parameters:
version- the client version- Returns:
- this Builder instance
-
locale
Specifies the client locale, for a request built on behalf of a client running in another JVM, by default the locale of the JVM building the request.- Parameters:
locale- the client locale- Returns:
- this Builder instance
-
timeZone
Specifies the client time zone, for a request built on behalf of a client running in another JVM, by default the time zone of the JVM building the request.- Parameters:
timeZone- the client time zone- Returns:
- this Builder instance
-
parameter
- Parameters:
key- the keyvalue- the value- Returns:
- this Builder instance
-
build
ConnectionRequest build()- Returns:
- a new ConnectionRequest instance
- Throws:
NullPointerException- in case the user or client type have not been specified
-