Skip to content

Convert TransportMessage to an interface#126374

Closed
rjernst wants to merge 1 commit intoelastic:mainfrom
rjernst:di/transport_message_interface
Closed

Convert TransportMessage to an interface#126374
rjernst wants to merge 1 commit intoelastic:mainfrom
rjernst:di/transport_message_interface

Conversation

@rjernst
Copy link
Copy Markdown
Member

@rjernst rjernst commented Apr 6, 2025

TransportMessage is unnecessarily an abstract class, which is more rigid when trying to refactor due to only being able to extend a single class. This commit makes TransportMessage an interface with default methods.

TransportMessage is unnecessarily an abstract class, which is more rigid
when trying to refactor due to only being able to extend a single class.
This commit makes TransportMessage an interface with default methods.
@rjernst rjernst added :Core/Infra/Transport API Transport client API >refactoring auto-backport Automatically create backport pull requests when merged v8.19.0 v9.1.0 labels Apr 6, 2025
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Apr 6, 2025
@DaveCTurner
Copy link
Copy Markdown
Member

Honestly we could just drop this base class entirely, see #126375.

@rjernst
Copy link
Copy Markdown
Member Author

rjernst commented Apr 7, 2025

Closing in favor of #126375

@rjernst rjernst closed this Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Core/Infra/Transport API Transport client API >refactoring Team:Core/Infra Meta label for core/infra team v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants