Class EthosClientBuilder
- java.lang.Object
-
- com.ellucian.ethos.integration.client.EthosClientBuilder
-
public class EthosClientBuilder extends Object
Builder used for building Ethos clients. This is the primary means of building the desired Ethos client class. This class supports building clients specified by the various client types, using a builder pattern.
-
-
Constructor Summary
Constructors Constructor Description EthosClientBuilder(String apiKey)
Constructs this class with the given apiKey.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EthosConfigurationClient
buildEthosConfigurationClient()
Builds anEthosConfigurationClient
that will use the given API key to authenticate, and the specified timeout values to connect with.EthosErrorsClient
buildEthosErrorsClient()
Builds anEthosErrorsClient
that will use the given API key to authenticate, and the specified timeout values to connect with.EthosFilterQueryClient
buildEthosFilterQueryClient()
Builds anEthosFilterQueryClient
that will use the given API key to authenticate, and the specified timeout values to connect with.EthosMessagesClient
buildEthosMessagesClient()
Builds anEthosMessagesClient
that will use the given API key to authenticate, and the specified timeout values to connect with.EthosProxyClientAsync
buildEthosProxyAsyncClient()
Builds anEthosProxyClientAsync
that will use the given API key to authenticate, and the specified timeout values to connect with.EthosProxyClient
buildEthosProxyClient()
Builds anEthosProxyClient
that will use the given API key to authenticate, and the specified timeout values to connect with.EthosClientBuilder
withConnectionRequestTimeout(Integer connectionRequestTimeout)
Sets the connection request timeout value to be used.EthosClientBuilder
withConnectionTimeout(Integer connectionTimeout)
Sets the connection timeout value to be used.EthosClientBuilder
withSocketTimeout(Integer socketTimeout)
Sets the socket timeout value to be used.
-
-
-
Constructor Detail
-
EthosClientBuilder
public EthosClientBuilder(String apiKey)
Constructs this class with the given apiKey.- Parameters:
apiKey
- The API key used to build the access token for the desired Ethos client.
-
-
Method Detail
-
withConnectionTimeout
public EthosClientBuilder withConnectionTimeout(Integer connectionTimeout)
Sets the connection timeout value to be used. Can be a null value.- Parameters:
connectionTimeout
- The connection timeout value to use, can be null.- Returns:
- This builder with the connection timeout value set.
-
withConnectionRequestTimeout
public EthosClientBuilder withConnectionRequestTimeout(Integer connectionRequestTimeout)
Sets the connection request timeout value to be used. Can be a null value.- Parameters:
connectionRequestTimeout
- The connection request timeout value to use, can be null.- Returns:
- This builder with the connection request timeout value set.
-
withSocketTimeout
public EthosClientBuilder withSocketTimeout(Integer socketTimeout)
Sets the socket timeout value to be used. Can be a null value.- Parameters:
socketTimeout
- The socket timeout value to use, can be null.- Returns:
- This builder with the socket timeout value set.
-
buildEthosErrorsClient
public EthosErrorsClient buildEthosErrorsClient()
Builds anEthosErrorsClient
that will use the given API key to authenticate, and the specified timeout values to connect with.- Returns:
- an EthosErrorsClient using the given apiKey and timeout values.
-
buildEthosConfigurationClient
public EthosConfigurationClient buildEthosConfigurationClient()
Builds anEthosConfigurationClient
that will use the given API key to authenticate, and the specified timeout values to connect with.- Returns:
- an EthosConfigurationClient using the given apiKey and timeout values.
-
buildEthosProxyClient
public EthosProxyClient buildEthosProxyClient()
Builds anEthosProxyClient
that will use the given API key to authenticate, and the specified timeout values to connect with.- Returns:
- an EthosProxyClient using the given apiKey and timeout values.
-
buildEthosProxyAsyncClient
public EthosProxyClientAsync buildEthosProxyAsyncClient()
Builds anEthosProxyClientAsync
that will use the given API key to authenticate, and the specified timeout values to connect with. This client can perform all of the operations thatEthosProxyClient
can. Additionally, it can also perform paging operations wrapped inCompletableFuture
CompletableFutures for asynchronous paging.- Returns:
- an EthosProxyClient using the given apiKey and timeout values.
-
buildEthosMessagesClient
public EthosMessagesClient buildEthosMessagesClient()
Builds anEthosMessagesClient
that will use the given API key to authenticate, and the specified timeout values to connect with.- Returns:
- an EthosMessagesClient using the given apiKey and timeout values.
-
buildEthosFilterQueryClient
public EthosFilterQueryClient buildEthosFilterQueryClient()
Builds anEthosFilterQueryClient
that will use the given API key to authenticate, and the specified timeout values to connect with.- Returns:
- an EthosFilterQueryClient using the given apiKey and timeout values.
-
-