Skip to content

Commit

Permalink
[FLINK-15605][State][TTL] Remove deprecated in 1.9 StateTtlConfig.Tim…
Browse files Browse the repository at this point in the history
…eCharacteristic

1.10 follow-up for FLINK-11825
  • Loading branch information
azagrebin committed Jan 16, 2020
1 parent 56cff88 commit 788a943
Showing 1 changed file with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,6 @@ public enum StateVisibility {
NeverReturnExpired
}

/**
* This option configures time scale to use for ttl.
*
* @deprecated will be removed in a future version in favor of {@link TtlTimeCharacteristic}
*/
@Deprecated
public enum TimeCharacteristic {
/** Processing time, see also <code>TimeCharacteristic.ProcessingTime</code>. */
ProcessingTime
}

/**
* This option configures time scale to use for ttl.
*/
Expand Down Expand Up @@ -219,22 +208,6 @@ public Builder neverReturnExpired() {
return setStateVisibility(StateVisibility.NeverReturnExpired);
}

/**
* Sets the time characteristic.
*
* @param timeCharacteristic The time characteristic configures time scale to use for ttl.
*
* @deprecated will be removed in a future version in favor of {@link #setTtlTimeCharacteristic}
*/
@Deprecated
@Nonnull
public Builder setTimeCharacteristic(@Nonnull TimeCharacteristic timeCharacteristic) {
checkArgument(timeCharacteristic.equals(TimeCharacteristic.ProcessingTime),
"Only support TimeCharacteristic.ProcessingTime, this function has replaced by setTtlTimeCharacteristic.");
setTtlTimeCharacteristic(TtlTimeCharacteristic.ProcessingTime);
return this;
}

/**
* Sets the time characteristic.
*
Expand Down

0 comments on commit 788a943

Please sign in to comment.