Package com.skava.service.impl
Class GetAllCollectionAttributeServiceImpl
java.lang.Object
com.skava.service.impl.GetAllCollectionAttributeServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<CollectionAttributeRequest,
,CollectionAttributesResponse> GetAllCollectionAttributeService
@Service
public class GetAllCollectionAttributeServiceImpl
extends Object
implements GetAllCollectionAttributeService
This service class implements GetAllCollectionAttributeService and handles the get all collection attribute service
request, process it and save the details in DB. It also implements business logic required to retrieve
all collection attributes.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
This method is used to get the respective validator class for this get all collection attribute service.Circuit breaker fall-back method monitors for failures and once failures reach certain threshold, the circuit breaker trips and returns error response accordingly - Method fallback.process
(CollectionAttributeRequest request) This method is used to load all collection attribute from DBMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.core.EcommService
getValidateException, getValidator
-
Constructor Details
-
GetAllCollectionAttributeServiceImpl
public GetAllCollectionAttributeServiceImpl()The default constructor.
-
-
Method Details
-
getValidator
This method is used to get the respective validator class for this get all collection attribute service.- Specified by:
getValidator
in interfacecom.skava.core.EcommService<CollectionAttributeRequest,
CollectionAttributesResponse> - Returns:
- The list of
ValidatorComponent
object.
-
process
@HystrixCommand(commandKey="user-key", fallbackMethod="methodFallback", ignoreExceptions=com.skava.core.validation.ValidateException.class) public CollectionAttributesResponse process(CollectionAttributeRequest request) This method is used to load all collection attribute from DB- Specified by:
process
in interfacecom.skava.core.EcommService<CollectionAttributeRequest,
CollectionAttributesResponse> - Parameters:
request
- HoldsCollectionAttributeRequest
object for loading all collection attribute.- Returns:
- The
CollectionAttributesResponse
object which returns success response code and response message.
-
methodFallback
Circuit breaker fall-back method monitors for failures and once failures reach certain threshold, the circuit breaker trips and returns error response accordingly - Method fallback.- Parameters:
input
- HoldsCollectionAttributeRequest
object.- Returns:
- The
CollectionAttributesResponse
object.
-