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

ISPN-3108 Server compatibility minor adjustments #1828

Closed
wants to merge 1 commit into from

Conversation

galderz
Copy link
Member

@galderz galderz commented May 21, 2013

https://issues.jboss.org/browse/ISPN-3108

  • Extend keyEquivalence usage to transaction collections.
  • Add a getInstance() method to AnyEquivalence to provide a typesafe
    equivalence for any type that relies on the object's equals/hashCode()
    implementations.
  • Byte arrays can now be stored in tree bins in EquivalentCHMv8
  • Achieved by making sure that the keyEquivalence's isComparable method
    for byte arrays returns true, and a unsigned method to compare byte
    arrays is implemented.
  • Make flag aware commands metadata aware. Makes it easier to pass down
    metadata information without having to do instanceof/cast of classes.
  • Add lifespan(long) and maxIdle(long) to Metadata builder
  • Use immutable metadata instance when no expiration parameters
  • A side effect of this is that CacheImpl does no longer extend
    CacheSupport because that in itself does not extend AdvancedCache and
    the methods defined are defined as final.

* Extend keyEquivalence usage to transaction collections.
* Add a getInstance() method to AnyEquivalence to provide a typesafe
equivalence for any type that relies on the object's equals/hashCode()
implementations.
* Byte arrays can now be stored in tree bins in EquivalentCHMv8
* Achieved by making sure that the keyEquivalence's isComparable method
for byte arrays returns true, and a unsigned method to compare byte
arrays is implemented.
* Make flag aware commands metadata aware. Makes it easier to pass down
metadata information without having to do instanceof/cast of classes.
* Add lifespan(long) and maxIdle(long) to Metadata builder
* Use immutable metadata instance when no expiration parameters
* A side effect of this is that CacheImpl does no longer extend
CacheSupport because that in itself does not extend AdvancedCache and
the methods defined are defined as final.
*/
Builder lifespan(long time, TimeUnit unit);

/**
* Set max idle time.
* Set lifespan time assuming that the time unit is milliseconds.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! it does simplify code a bit :-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, you were right. There's a lot of places where we're calling it with MILLISECONDS :)

@mmarkus
Copy link
Contributor

mmarkus commented May 23, 2013

thanks Galder!

@mmarkus mmarkus closed this May 23, 2013
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.

2 participants