• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ben-manes / caffeine / 2349
100%

Build:
DEFAULT BRANCH: master
Ran 20 Feb 2019 08:55AM UTC
Jobs 1
Files 68
Run time 88min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2349

push

travis-ci

ben-manes
Async map support (fixes #156)

AsyncCache now includes an `asMap()` view where the value is the
`CompletableFuture`. This allows for directly working with the
futures with all of the flexibility that Map provides, just as is
possible with the synchronous cache. The synchronous view has the
limitation of requiring that the existing future completes and the
new value cannot be in-flight.

Because the future (put, replace, computes) may be in-flight, the
completion of the future is counted as the load success / failure. The
map operation to insert that future is not counted in the statistics, as
typically the future is immediately obtainable, fetching it shouldn't
fail, and the success / fail / cost is not a meaningful attribute. This
means some operations record load stats differently than the synchronous
view. The topic of stats is fuzzy enough that this seems okay, as long
as it provides some meaningful metrics that fit the mental model of the
cache type being used. A related difference is that futures do not have
a notion of equality (reference-based) which can cause subtle differences
in behavior.

5950 of 6342 relevant lines covered (93.82%)

0.94 hits per line

Jobs
ID Job ID Ran Files Coverage
2 2349.2 (GROUP=tests) 20 Feb 2019 10:24AM UTC 0
93.79
Travis Job 2349.2
Source Files on build 2349
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2349
  • 3ade58b9 on github
  • Prev Build on master (#2348)
  • Next Build on master (#2350)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc