...
close()
already is a variant with no parameters and applies a default from config. This variant will be deprecated in favor of the newclose(Duration)
variantHowever, this variant will not be deprecated because it called by theCloseable
interface.close(long, TimeUnit)
also exists as a variant. This one will be deprecated in favor of the newclose(Duration)
variant for consistency- The existing semantics of close is not to throw a
TimeoutException
. Instead, after waiting for the timeout, it forces itself closed.
...