description |
---|
Splitter PHP |
The Splitter is endpoint where message can be splitted in several parts and be sent to be processed indepedently.
class Shop
{
#[Splitter(inputChannelName="buyProduct", outputChannelName="buySingleProduct")]
public function sendMultipleOrders(array $products) : array
{
return $products;
}
#[ServiceActivator("buySingleProduct")]
public function buyProduct(string $productName) : void
{
echo "Product {$productName} was bought";
}
}
endpointId
- Endpoint identifierinputChannnelName
- Required option, defines to which channel endpoint should be connectedoutputChannelName
- Channel where result of method invocation will berequiredInterceptorNames
- List of interceptor names, which should intercept the endpoint