mirror of https://github.com/apache/kafka.git
KAFKA-17253: Deprecate Leaking Getter Methods in Joined Helper Class (#17164)
Reviewers: Matthias J. Sax <matthias@confluent.io>
This commit is contained in:
parent
2703b64c4c
commit
9b53b525e8
|
@ -271,18 +271,35 @@ public class Joined<K, VLeft, VRight> implements NamedOperation<Joined<K, VLeft,
|
|||
return new Joined<>(keySerde, leftValueSerde, rightValueSerde, name, gracePeriod);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @deprecated since 4.0 and should not be used any longer.
|
||||
*/
|
||||
@Deprecated
|
||||
public Duration gracePeriod() {
|
||||
return gracePeriod;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 4.0 and should not be used any longer.
|
||||
*/
|
||||
@Deprecated
|
||||
public Serde<K> keySerde() {
|
||||
return keySerde;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 4.0 and should not be used any longer.
|
||||
*/
|
||||
@Deprecated
|
||||
public Serde<VLeft> valueSerde() {
|
||||
return leftValueSerde;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated since 4.0 and should not be used any longer.
|
||||
*/
|
||||
@Deprecated
|
||||
public Serde<VRight> otherValueSerde() {
|
||||
return rightValueSerde;
|
||||
}
|
||||
|
|
|
@ -27,10 +27,12 @@ public class JoinedInternal<K, VLeft, VRight> extends Joined<K, VLeft, VRight>
|
|||
super(joined);
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public Duration gracePeriod() {
|
||||
return gracePeriod;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public Serde<K> keySerde() {
|
||||
return keySerde;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue