Skip to content

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

Open
rachmatowicz wants to merge 1 commit into
wildfly:masterfrom
rachmatowicz:WFDISC-37
Open

[WFDESC-37] Adjust takeService() method to use (default) timeout value specified in constructor#31
rachmatowicz wants to merge 1 commit into
wildfly:masterfrom
rachmatowicz:WFDISC-37

Conversation

@rachmatowicz

@rachmatowicz rachmatowicz commented Jan 4, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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