You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Zhengqingzheng <zh...@huawei.com> on 2016/08/04 11:27:36 UTC

cancel implementation issue in service class.

Hi there,
I am trying to implement a service to load data automatically into cache when ignite service started.
However, I am not sure how to implement the 'cancel' method.
For example, assume that I am loading data via jdbc connections. What should I do to stop loading in 'cancel' method?


Best regards,
Kevin

Re: cancel implementation issue in service class.

Posted by vkulichenko <va...@gmail.com>.
Hi Kevin,

This highly depends on what exactly your code is doing and what do you want
to do when the service is cancelled (redeployed or undeployed). Basically,
cancel() method is just a callback notifying you that all the activities
should stop, by you can still wait for some operations to finish, for
example. Think of it as about interruption of a thread.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/cancel-implementation-issue-in-service-class-tp6756p6816.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.