Class ServiceEndpoint.ServiceEndpointBuilder
java.lang.Object
com.sap.cds.services.utils.lib.tools.api.ServiceEndpoint.ServiceEndpointBuilder
- All Implemented Interfaces:
ServiceEndpointMediators.End,ServiceEndpointMediators.FromCodeChecker,ServiceEndpointMediators.FromConfig,ServiceEndpointMediators.FromCreate,ServiceEndpointMediators.FromDestinationName,ServiceEndpointMediators.FromDoNotRetry,ServiceEndpointMediators.FromPath,ServiceEndpointMediators.FromRetry,ServiceEndpointMediators.FromReturnCodes
- Enclosing class:
- ServiceEndpoint
public static class ServiceEndpoint.ServiceEndpointBuilder
extends Object
implements ServiceEndpointMediators.FromCreate, ServiceEndpointMediators.FromDestinationName, ServiceEndpointMediators.FromPath, ServiceEndpointMediators.FromCodeChecker, ServiceEndpointMediators.FromRetry, ServiceEndpointMediators.FromReturnCodes, ServiceEndpointMediators.FromConfig, ServiceEndpointMediators.FromDoNotRetry
-
Method Summary
Modifier and TypeMethodDescriptionconfig(ResilienceConfig resilienceConfig) destination(com.sap.cloud.sdk.cloudplatform.connectivity.HttpDestination destination) destinationName(String destinationName) end()forReturnCodes(Integer... returnCodes) forReturnCodes(List<Integer> returnCodes) forReturnCodes(Set<Integer> returnCodes) retry()returnCodeChecker(IntFunction<Exception> checkFunction)
-
Method Details
-
createBuilder
-
destinationName
- Specified by:
destinationNamein interfaceServiceEndpointMediators.FromCreate
-
destination
public ServiceEndpointMediators.FromDestinationName destination(com.sap.cloud.sdk.cloudplatform.connectivity.HttpDestination destination) - Specified by:
destinationin interfaceServiceEndpointMediators.FromCreate
-
path
- Specified by:
pathin interfaceServiceEndpointMediators.FromDestinationName
-
returnCodeChecker
public ServiceEndpointMediators.FromCodeChecker returnCodeChecker(IntFunction<Exception> checkFunction) - Specified by:
returnCodeCheckerin interfaceServiceEndpointMediators.FromPath
-
throwNoExceptionForReturnCode
- Specified by:
throwNoExceptionForReturnCodein interfaceServiceEndpointMediators.FromPath
-
retry
- Specified by:
retryin interfaceServiceEndpointMediators.FromCodeChecker
-
doNotRetry
- Specified by:
doNotRetryin interfaceServiceEndpointMediators.FromCodeChecker
-
forReturnCodes
- Specified by:
forReturnCodesin interfaceServiceEndpointMediators.FromRetry
-
forReturnCodes
- Specified by:
forReturnCodesin interfaceServiceEndpointMediators.FromRetry
-
forReturnCodes
- Specified by:
forReturnCodesin interfaceServiceEndpointMediators.FromRetry
-
config
- Specified by:
configin interfaceServiceEndpointMediators.FromReturnCodes
-
end
- Specified by:
endin interfaceServiceEndpointMediators.End- Throws:
InternalException
-