Page MenuHomePhabricator

[Java] Refactor api submit methods to require stream name
Closed, ResolvedPublic3 Estimated Story Points

Description

Part of Goal T354780

Description

Coming out of T354199, the Java client library should be refactored such that the current submit methods require stream name as a parameter rather than relying on configuration to match stream names and events.

The current logic in the Java client library relies on looping through stream configs and matching event names and event name prefixes to determine if an event should be added to the batch queue. The submit methods can be simplified so that stream name is a required parameter.

Once this logic is refactored, the Java client library will no longer be able to broadcast events to streams. Rather each event should pass in the stream name during submission.

Acceptance Criteria

  • All api submit methods in the Java client require stream name.
  • The Java client submit methods are more in alignment with the Javascript and PHP client libraries
  • Relevant tests are updated.
  • Documentation is updated accordingly.
  • For backwards compatibility, mark outdated methods as deprecated

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
[Java] Update submit methods to require stream namerepos/data-engineering/metrics-platform!22cjmingT354819/java-require-stream-namemain
Customize query in GitLab

Event Timeline

phuedx set the point value for this task to 3.Jan 16 2024, 10:47 AM