i’m trying to implement a cancel function in my java client in order to allow a user to cancel a search when it takes too long. I have encapsulated all the process of connecting + querying + getting the results in a thread called from my client. So i check between each step if the thread has been interrupted.
Unfortunately, once the step TResponse response = accessor.xquery(query,PAGE_SIZE); has been launched (and it’s often the longest step), i’m forced to wait the end of it before being able to treat the cancelling.
Does it exist a way to be informed of something during this method is running ? How can i do that ?
thanks in advance for any lead.
ps : it’s maybe more a java question than a tamino one, but on doesn’t know. Maybe someone has already implemented something like that here…