Package com.skava.cart.service.impl
Class FindAllCartItemServiceImpl
java.lang.Object
com.skava.cart.service.impl.CartItemServiceImpl
com.skava.cart.service.impl.FindAllCartItemServiceImpl
- All Implemented Interfaces:
FindAllCartItemService
,com.skava.core.EcommService<CartDataRequest,
CartItemResponse>
@Service
public class FindAllCartItemServiceImpl
extends CartItemServiceImpl
implements FindAllCartItemService
The Class FindAllCartItemServiceImpl.
-
Field Summary
Fields inherited from class com.skava.cart.service.impl.CartItemServiceImpl
cartCommonProcess, cartEventSender, cartFactory, cartItemProcess, cartNewFactory, ENTITY, messageSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmethodFallback
(CartDataRequest request) Fall back process if there is any exception in the execution of the process.process
(CartDataRequest request) This method is used to load all Item based on given Item.Methods inherited from class com.skava.cart.service.impl.CartItemServiceImpl
getValidator
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, getValidator
-
Constructor Details
-
FindAllCartItemServiceImpl
public FindAllCartItemServiceImpl()
-
-
Method Details
-
process
@HystrixCommand(commandKey="item-key", fallbackMethod="methodFallback", commandProperties=@HystrixProperty(name="execution.isolation.strategy",value="SEMAPHORE"), ignoreExceptions=com.skava.core.validation.ValidateException.class) public CartItemResponse process(CartDataRequest request) This method is used to load all Item based on given Item. It checks whether the cart is present in given collection or not, if cart doesn't exists in given collection, it will return an error message/ error code. if item not present in given cart, it will return error message according to that.- Specified by:
process
in interfacecom.skava.core.EcommService<CartDataRequest,
CartItemResponse> - Parameters:
request
- It contains the attributes required for the load all Item.- Returns:
- the instance of
CartItemResponse
object.
-
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.
-