code: public void enableTimeToLive(StateTtlConfig ttlConfig) {
  		Preconditions.checkNotNull(ttlConfig);
  		Preconditions.checkArgument(
  			ttlConfig.getUpdateType() != StateTtlConfig.UpdateType.Disabled &&
  				queryableStateName == null,
  			"Queryable state is currently not supported with TTL");
  		this.ttlConfig = ttlConfig;
  	}
docs: Configures optional activation of state time-to-live (TTL).
  
  <p>State user value will expire, become unavailable and be cleaned up in storage
  depending on configured {@link StateTtlConfig}.
  
  @param ttlConfig configuration of state TTL