Hi Samiyuru,

AFAIU, for each Disruptor we create an ExecuterService. Threads in this
ExecutorService will be used to execute the EventHandler of the Disruptor.
Therefore, number of threads in the Executor are the number of
EventHanlders for that particular Disruptor.

@IsuruR - please correct me if I am wrong :)

On Fri, Feb 19, 2016 at 10:34 AM, Samiyuru Senarathne <[email protected]>
wrote:

> Hi,
>
> In carbon-transport, why are the number of event handlers and the number
> of threads in the ExecutorService of Disruptor [1] the same? Is there a way
> to configure them separately?
>
> [1] -
> https://github.com/wso2/carbon-transports/blob/master/http/netty/components/org.wso2.carbon.transport.http.netty/src/main/java/org/wso2/carbon/transport/http/netty/common/disruptor/config/DisruptorFactory.java#L47
>
> Best Regards,
> Samiyuru
>
> --
> Samiyuru Senarathne
> *Software Engineer*
> Mobile : +94 (0) 71 134 6087
> [email protected]
>



-- 
Regards,
*Shafreen*
Software Engineer
WSO2 Inc
Mobile : 077-556-395-1
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to