-
Notifications
You must be signed in to change notification settings - Fork 695
GEODE-1897: Initial refactor of CreateRegionCommand #956
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
Merged
jdeppe-pivotal
merged 12 commits into
apache:develop
from
jdeppe-pivotal:feature/GEODE-1897
Oct 24, 2017
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6a783c7
GEODE-1897: Initial refactor of CreateRegionCommand
jdeppe-pivotal 0457dac
GEODE-1897: Add test categories
jdeppe-pivotal 828c251
GEODE-1897: Add license headers
jdeppe-pivotal 50f4c33
GEODE-1897: Add missing test category
jdeppe-pivotal 0b97a05
GEODE-1897: Update miscellaneous test failures
jdeppe-pivotal f87835f
GEODE-1897: Review updates
jdeppe-pivotal 797f50d
Merge branch 'develop' into feature/GEODE-1897
jdeppe-pivotal 6a5bfce
GEODE-1897: More review changes
jdeppe-pivotal a7dd2fc
GEODE-1897: Integrate better with new develop functionality
jdeppe-pivotal 8f282ce
GEODE-1897: Impromptu review update
jdeppe-pivotal c36067f
GEODE-1897: Spotless how do I love thee... let me count the ways
jdeppe-pivotal e64f31b
GEODE-1897: fixing precheckin failures
jdeppe-pivotal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,14 +73,22 @@ public ExpirationAttributes(int expirationTime) { | |
| /** | ||
| * Constructs an <code>ExpirationAttributes</code> with the specified expiration time and | ||
| * expiration action. | ||
| * | ||
| * @param expirationTime The number of seconds for a value to live before it expires | ||
| * | ||
| * @param expirationTime The number of seconds for a value to live before it expires. If this | ||
| * parameter is negative, the expiration time will be set to 0, indicating no expiration. | ||
| * @param expirationAction the action to take when the value expires | ||
| * @throws IllegalArgumentException if expirationTime is nonpositive | ||
| */ | ||
| public ExpirationAttributes(int expirationTime, ExpirationAction expirationAction) { | ||
| this.timeout = expirationTime; | ||
| this.action = expirationAction; | ||
| if (expirationTime < 0) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I noticed that the javadoc says this method should throw an IllegalArgumentException if the expirationTime is nonpositive. We should either update the javadoc or throw the exception in that case. |
||
| this.timeout = 0; | ||
| } else { | ||
| this.timeout = expirationTime; | ||
| } | ||
| if (expirationAction == null) { | ||
| this.action = ExpirationAction.INVALIDATE; | ||
| } else { | ||
| this.action = expirationAction; | ||
| } | ||
| } | ||
|
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why only define symbolic constant for concurrencyLevel? For consistency I'd either define constants for all the unexplained hardcoded numbers (initialCapacity & loadFactor ?) or none of them. DEFAULT_CONCURRENCY is only used the once so I don't see a reason for singling it out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to be able to reference this value outside of this class. I guess the other values aren't being used/referenced anywhere outside of this class.
Also, the
AttributesFactoryclass is deprecated, so making larger changes is less important I think.