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

optimizely / java-sdk / 1128
91%

Build:
DEFAULT BRANCH: master
Ran 09 Jul 2019 10:57PM UTC
Jobs 8
Files 115
Run time 30min
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
1128

push

travis-ci

web-flow
Implement Event Batching (#312)

* Introduces an EventProcessor interface.
* Introduces a BatchEventProcessor (maybe should name it BatchingEventProcessor)
* Introduces an OptimizelyRule to handle lifecycle management during unit testing.

Buffering events within a queue before dispatching is an optimization that should prevent SDK implementations from exhausting resources while increasing throughput. This implementation relies on a `BlockingQueue` to buffer events received from one-to-many producers. A single consumer thread continuously polls from this queue to build a batch before emitting the batched `LogEvent`.

Note that the `Optimizely` class only knows about the `EventProcessor` and `EventHandler` so that it can gracefully close those implementations, so not strictly necessary. The Optimizely class builds UserEvents via the `UserEventFactory` and passes those events to the `EventProcessor`. The `EventProcessor` emits `LogEvents` to a `NotificationManager<LogEvent>` which is subscribed to by the `EventHandler` for eventual dispatching.

3548 of 3962 relevant lines covered (89.55%)

7.16 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1128.2 (optimizely_default_parser=GSON_CONFIG_PARSER) 09 Jul 2019 10:57PM UTC 0
89.55
Travis Job 1128.2
3 1128.3 (optimizely_default_parser=GSON_CONFIG_PARSER) 09 Jul 2019 10:57PM UTC 0
89.55
Travis Job 1128.3
5 1128.5 (optimizely_default_parser=JACKSON_CONFIG_PARSER) 09 Jul 2019 10:57PM UTC 0
89.55
Travis Job 1128.5
6 1128.6 (optimizely_default_parser=JACKSON_CONFIG_PARSER) 09 Jul 2019 10:57PM UTC 0
89.55
Travis Job 1128.6
8 1128.8 (optimizely_default_parser=JSON_CONFIG_PARSER) 09 Jul 2019 11:01PM UTC 0
89.55
Travis Job 1128.8
9 1128.9 (optimizely_default_parser=JSON_CONFIG_PARSER) 09 Jul 2019 11:02PM UTC 0
89.55
Travis Job 1128.9
11 1128.11 (optimizely_default_parser=JSON_SIMPLE_CONFIG_PARSER) 09 Jul 2019 11:03PM UTC 0
89.55
Travis Job 1128.11
12 1128.12 (optimizely_default_parser=JSON_SIMPLE_CONFIG_PARSER) 09 Jul 2019 11:06PM UTC 0
89.55
Travis Job 1128.12
Source Files on build 1128
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1128
  • a0d0ccb5 on github
  • Prev Build on master (#1122)
  • Next Build on master (#1131)
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