When you publish()or subscribe(), there is a TTL that depends on the strategy you are going into. A strategy is part of SubscribeOptionsor objects PublishOptionsthat you can select. install TTL on everything you like, including TTL_SECONDS_INFINITE. If you fail one, he will use the default strategy, which has a TTL of 300 seconds.
See the link for the Strategy class .
source
share