Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

How do I disable a Polling container programmatically?

We have scenarios where the processing of events by the Polling container becomes corrupt and we wish to stop processing. In order to stop our Polling container we could just do a Thread.sleep() but that's clumsy. It looks like DynamicEventTemplate would be an alternative, set the template to a "DISABLED" type, still pretty clumsy. Is there a programmatic way to tell the container not to process anymore event?

We're using Spring so we don't have a reference to the container itself.

asked 2016-11-07 17:07:04 -0500

dmimnagh gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

You should call:pollingEventListenerContainer.stop();

answered 2016-11-08 08:09:44 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Do you have one example? or a wiki how to disable the Polling Container?

guedim gravatar imageguedim ( 2017-01-09 21:31:56 -0500 )edit

See the polling container lifecycle section: http://docs.gigaspaces.com/xap120/pol...

shay hassidim gravatar imageshay hassidim ( 2017-01-09 21:48:37 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2016-11-07 17:07:04 -0500

Seen: 1,252 times

Last updated: Nov 08 '16