mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-23 04:42:06 +01:00
Deprecate ProducerOptions.setEncoding()
The reason is that values other than BINARY oftentimes cause issues (see https://github.com/pgpainless/pgpainless/issues/264), and further experts recommended to ignore the metadata of the LiteralData packet and only produce with ('b'/0/) as metadata values.
This commit is contained in:
parent
1cb3e559b5
commit
620deaa1f9
1 changed files with 5 additions and 0 deletions
|
@ -230,7 +230,11 @@ public final class ProducerOptions {
|
||||||
*
|
*
|
||||||
* @param encoding encoding
|
* @param encoding encoding
|
||||||
* @return this
|
* @return this
|
||||||
|
*
|
||||||
|
* @deprecated this option will be removed in the near future, as values other than {@link StreamEncoding#BINARY}
|
||||||
|
* are causing issues. See https://github.com/pgpainless/pgpainless/issues/264 for details
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public ProducerOptions setEncoding(@Nonnull StreamEncoding encoding) {
|
public ProducerOptions setEncoding(@Nonnull StreamEncoding encoding) {
|
||||||
this.streamEncoding = encoding;
|
this.streamEncoding = encoding;
|
||||||
return this;
|
return this;
|
||||||
|
@ -239,6 +243,7 @@ public final class ProducerOptions {
|
||||||
public StreamEncoding getEncoding() {
|
public StreamEncoding getEncoding() {
|
||||||
return streamEncoding;
|
return streamEncoding;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Override which compression algorithm shall be used.
|
* Override which compression algorithm shall be used.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue