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

[WFDESC-37] Adjust takeService() method to use (default) timeout value specified in constructor #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rachmatowicz
Copy link
Contributor

@rachmatowicz rachmatowicz commented Jan 4, 2021

This PR does the following:

  • modifies the BlockingQueueServicesQueue.takeService() method to use a timeout value provided by the constructor so that:
    -- calls to takeService() use the default timeout specified by the constructor
    -- calls to takeService(timeout, timeunit) use the timeout specified in the method call instance
  • adds test case for testing discovery timeout behavior

The "fully blocking" style is arranged either by creating the queue using the no parameter constructor and calling takeService() or passing a Long.MAX_VALUE timeout parameter to the method call takeService(timeout, timeunit) to override any constructor timeout value.

@rachmatowicz
Copy link
Contributor Author

NOTE: don't merge this just yet, I should write a test case to test this!

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

Successfully merging this pull request may close these issues.

1 participant