Package com.skava.list.service.impl
Class FindListItemServiceImpl
java.lang.Object
com.skava.list.service.impl.FindListItemServiceImpl
- All Implemented Interfaces:
com.skava.core.EcommService<ListItemRequestInternal,
,ListItemResponse> FindListItemService
FindListItemServiceImpl class
This class contains the implemented for functionality to load find collection of list item.
-
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new find list item service impl.FindListItemServiceImpl
(ListWiredServices listWiredServices, com.skava.core.auth.AuthTokenHandler authTokenHandler) -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
methodFallback
(ListItemRequestInternal request) Fall back process if there is any exception in the execution of the process.process
(ListItemRequestInternal request) This method is used to load single ListItem based on given ListItem identifier.Methods 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
-
FindListItemServiceImpl
@Autowired public FindListItemServiceImpl(ListWiredServices listWiredServices, com.skava.core.auth.AuthTokenHandler authTokenHandler) -
FindListItemServiceImpl
public FindListItemServiceImpl()Instantiates a new find list item service impl.
-
-
Method Details
-
process
@HystrixCommand(commandKey="list-key", fallbackMethod="methodFallback", commandProperties=@HystrixProperty(name="execution.isolation.strategy",value="SEMAPHORE"), ignoreExceptions={com.skava.core.validation.ValidateException.class,com.skava.core.ECommerceException.class}) public ListItemResponse process(ListItemRequestInternal request) This method is used to load single ListItem based on given ListItem identifier.- Specified by:
process
in interfacecom.skava.core.EcommService<ListItemRequestInternal,
ListItemResponse> - Parameters:
request
- It contains the attributes required for the load of ListItem.- Returns:
- It returns the
ListItemAPIResponse
. - Throws:
com.skava.core.validation.ValidateException
- It will throw Ecommerce exception if it process get failed.
-
getValidator
- Specified by:
getValidator
in interfacecom.skava.core.EcommService<ListItemRequestInternal,
ListItemResponse>
-
methodFallback
Fall back process if there is any exception in the execution of the process.- Parameters:
request
- The request for the process- Returns:
- The response from the fall back process.
-