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 EthosConfigurationClientbuildEthosConfigurationClient()Builds anEthosConfigurationClientthat will use the given API key to authenticate, and the specified timeout values to connect with.EthosErrorsClientbuildEthosErrorsClient()Builds anEthosErrorsClientthat will use the given API key to authenticate, and the specified timeout values to connect with.EthosFilterQueryClientbuildEthosFilterQueryClient()Builds anEthosFilterQueryClientthat will use the given API key to authenticate, and the specified timeout values to connect with.EthosMessagesClientbuildEthosMessagesClient()Builds anEthosMessagesClientthat will use the given API key to authenticate, and the specified timeout values to connect with.EthosProxyClientAsyncbuildEthosProxyAsyncClient()Builds anEthosProxyClientAsyncthat will use the given API key to authenticate, and the specified timeout values to connect with.EthosProxyClientbuildEthosProxyClient()Builds anEthosProxyClientthat will use the given API key to authenticate, and the specified timeout values to connect with.EthosClientBuilderwithConnectionRequestTimeout(Integer connectionRequestTimeout)Sets the connection request timeout value to be used.EthosClientBuilderwithConnectionTimeout(Integer connectionTimeout)Sets the connection timeout value to be used.EthosClientBuilderwithSocketTimeout(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 anEthosErrorsClientthat 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 anEthosConfigurationClientthat 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 anEthosProxyClientthat 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 anEthosProxyClientAsyncthat will use the given API key to authenticate, and the specified timeout values to connect with. This client can perform all of the operations thatEthosProxyClientcan. Additionally, it can also perform paging operations wrapped inCompletableFutureCompletableFutures for asynchronous paging.- Returns:
- an EthosProxyClient using the given apiKey and timeout values.
-
buildEthosMessagesClient
public EthosMessagesClient buildEthosMessagesClient()
Builds anEthosMessagesClientthat 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 anEthosFilterQueryClientthat 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.
-
-