ttl毫秒(millisecond的缩写)

Sets ttl in milliseconds. Java cannot call ttl, whose JVM name is mangled because Duration is a value class.