/** * Returns the time-to-live in seconds property of the topic. */ public long getTTL() { if (!validated) { validateTTL(); } return Integer.parseInt(properties.get(TTL_KEY)); }
/** * Returns the time-to-live in seconds property of the topic. */ public long getTTL() { if (!validated) { validateTTL(); } return Integer.parseInt(properties.get(TTL_KEY)); }
/** * Validates all the required properties of the given topic. * * @throws IllegalArgumentException if any required properties is missing or having invalid values */ private void validateProperties() { validateTTL(); validateGeneration(); }
/** * Validates all the required properties of the given topic. * * @throws IllegalArgumentException if any required properties is missing or having invalid values */ private void validateProperties() { validateTTL(); validateGeneration(); }