Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the recommended way to shutdown a queue and await completion? #790

Open
jeacott1 opened this issue Jun 20, 2018 · 0 comments
Open

Comments

@jeacott1
Copy link

if I have a queue:

		final QueueBuilder queueBuilder = QueueBuilder.queueBuilder();

		queue = queueBuilder.setArrayBlockingQueue().setBatchSize(1000).setLimit(50)
				.setCheckEvery(5).setCheckIfBusy(false)
				.setName("Bridge Queue").setPollTimeUnit(TimeUnit.MILLISECONDS)
				.setPollWait(50).build();

		receiveQueue = queue.receiveQueue();
		sendQueue = queue.sendQueue();

calling queue.stop() looks like it will just exit processing, without first shutting down the sendQueue and allowing the receiveQueue to finish processing.

the internal queue and hence peek method is not available, so how is it intended that I can effect something like a queue.shutdownAwaitCompletion(timeout) ?

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant