Package org.apache.qpid.protonj2.client
Class ClientOptions
- java.lang.Object
-
- org.apache.qpid.protonj2.client.ClientOptions
-
public class ClientOptions extends java.lang.Object
Container Options for customizing the behavior of the Container
-
-
Constructor Summary
Constructors Constructor Description ClientOptions()
Create 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientOptions
clone()
ClientOptions
copyInto(ClientOptions other)
Copy all options from thisClientOptions
instance into the instance provided.java.lang.String
futureType()
ClientOptions
futureType(java.lang.String futureType)
Sets the desired future type that the client connection should use when creating the futures used by the API.java.lang.String
id()
ClientOptions
id(java.lang.String id)
Sets the container ID that should be used when creating Connections
-
-
-
Constructor Detail
-
ClientOptions
public ClientOptions()
Create a new ClientOptions instance with defaults set for all options.
-
ClientOptions
public ClientOptions(ClientOptions options)
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 Detail
-
id
public java.lang.String id()
- Returns:
- the ID configured the Container
-
id
public ClientOptions id(java.lang.String 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
public java.lang.String futureType()
- Returns:
- the configure future type to use for this client connection
-
futureType
public ClientOptions futureType(java.lang.String 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
public ClientOptions clone()
- Overrides:
clone
in classjava.lang.Object
-
copyInto
public ClientOptions copyInto(ClientOptions other)
Copy all options from thisClientOptions
instance into the instance provided.- Parameters:
other
- the target of this copy operation.- Returns:
- this options class for chaining.
-
-