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

[2.4] Add new Codec#encode_sync, Codec#multi_encode and `Output#multi_r… #5805

Merged
merged 1 commit into from Aug 22, 2016

Conversation

andrewvc
Copy link
Contributor

…eceive_encoded` methods.

These methods allow outputs to receive their events pre-encoded for them
by the pipeline. This is mostly useful in the context of #shared outputs, for whom
encoding a discrete batch in a threadsafe way is not necessarily straightforward.

It would be advised for codecs to prefer #multi_encode as the main way of operating
as the standard #encode method is not threadsafe.

@andrewvc andrewvc self-assigned this Aug 22, 2016
…eceive_encoded` methods.

These methods allow outputs to receive their events pre-encoded for them
by the pipeline. This is mostly useful in the context of `#shared` outputs, for whom
encoding a discrete batch in a threadsafe way is not necessarily straightforward.

It would be advised for codecs to prefer `#multi_encode` as the main way of operating
as the standard `#encode` method is not threadsafe.
@andrewvc andrewvc merged commit a69d2f5 into elastic:2.4 Aug 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant