Interface OutboundServiceFacade
- All Known Implementing Classes:
DefaultOutboundServiceFacade,TestOutboundFacade,WebhookImmediateRetryOutboundServiceFacade
public interface OutboundServiceFacade
Facade which orchestrates the
IntegrationObjectConversionService and IntegrationRestTemplateFactory to integrate
with the RESTful endpoint.-
Method Summary
Modifier and TypeMethodDescriptionrx.Observable<org.springframework.http.ResponseEntity<Map>>Method orchestrates the services to build the payload and to integrate with restful endpoint.default rx.Observable<org.springframework.http.ResponseEntity<Map>>send(SyncParameters params) Method orchestrates the services to build the payload and to integrate with restful endpoint.default org.springframework.http.ResponseEntity<String>sendBatch(List<SyncParameters> params) Method orchestrates the services to build a batch payload and to integrate with restful endpoint.
-
Method Details
-
send
rx.Observable<org.springframework.http.ResponseEntity<Map>> send(ItemModel itemModel, String integrationObjectCode, String destination) Method orchestrates the services to build the payload and to integrate with restful endpoint.- Parameters:
itemModel- the model to be convertedintegrationObjectCode- the name of the integration object to convert this model as payloaddestination- endpoint destination information- Returns:
- rx.Observable which allows the caller to subscribe the callback method
-
send
Method orchestrates the services to build the payload and to integrate with restful endpoint.- Parameters:
params- a parameter object holding data about the item synchronization request- Returns:
- rx.Observable which allows the caller to subscribe the callback method that provides result of the item sending.
-
sendBatch
Method orchestrates the services to build a batch payload and to integrate with restful endpoint.- Parameters:
params- a parameter object holding a list of parameters with data about the parts for the batch synchronization request- Returns:
- ResponseEntity that provides result of the request.
-