Package org.apache.qpid.protonj2.client
Class ClientOptions
java.lang.Object
org.apache.qpid.protonj2.client.ClientOptions
- All Implemented Interfaces:
Cloneable
Container Options for customizing the behavior of the Container
-
Constructor Summary
ConstructorDescriptionCreate a new ClientOptions instance with defaults set for all options.ClientOptions
(ClientOptions options) Create a new ClientOptions instance that copies the configuration from the specified source options. -
Method Summary
Modifier and TypeMethodDescriptionclone()
protected ClientOptions
copyInto
(ClientOptions other) Copy all options from thisClientOptions
instance into the instance provided.futureType
(String futureType) Sets the desired future type that the client connection should use when creating the futures used by the API.id()
Sets the container ID that should be used when creating Connections
-
Constructor Details
-
ClientOptions
public ClientOptions()Create a new ClientOptions instance with defaults set for all options. -
ClientOptions
Create a new ClientOptions instance that copies the configuration from the specified source options.- Parameters:
options
- The ClientOptions instance whose settings are to be copied into this one.
-
-
Method Details
-
id
- Returns:
- the ID configured the Container
-
id
Sets the container ID that should be used when creating Connections- Parameters:
id
- The container Id that should be assigned to container connections.- Returns:
- this options class for chaining.
-
futureType
- Returns:
- the configure future type to use for this client connection
-
futureType
Sets the desired future type that the client connection should use when creating the futures used by the API. By default the client will select a Future implementation by itself however the user can override this selection here if desired.- Parameters:
futureType
- The name of the future type to use.- Returns:
- this options object for chaining.
-
clone
-
copyInto
Copy all options from thisClientOptions
instance into the instance provided.- Parameters:
other
- the target of this copy operation.- Returns:
- the
ClientOptions
instance that was given.
-