//设置2分钟过期
val ttlConfig = StateTtlConfig
.newBuilder(Time.minutes(2))
.setUpdateType(StateTtlConfig.UpdateType.OnCreateAndWrite)
.setStateVisibility(StateTtlConfig.StateVisibility.NeverReturnExpired)
.build
val stateDesc = new MapStateDescriptor[String, String]("keyFilter", TypeInformation.of(new TypeHint[String] {}),
TypeInformation.of(new TypeHint[String] {}))