public Long ttl() {
        return ttl;
    }
Returns the TTL (in milliseconds).

@return ttl the time-to-live (in milliseconds) of the data, or null if there is no TTL
clients/src/main/java/org/apache/kafka/common/config/ConfigData.java