KafkaNet.BrokerRouter.RefreshTopicMetadata C# (CSharp) Method

RefreshTopicMetadata() public method

Force a call to the kafka servers to refresh metadata for the given topics.
This method will ignore the cache and initiate a call to the kafka servers for all given topics, updating the cache with the resulting metadata. Only call this method to force a metadata update. For all other queries use GetTopicMetadataFromLocalCache which uses cached values.
public RefreshTopicMetadata ( ) : Task
return Task
        public Task<bool> RefreshTopicMetadata(params string[] topics)
        {
            return RefreshTopicMetadata(_kafkaOptions.CacheExpiration, _kafkaOptions.RefreshMetadataTimeout, topics);
        }

Same methods

BrokerRouter::RefreshTopicMetadata ( System.TimeSpan cacheExpiration, System.TimeSpan timeout ) : Task