DiscoveryEndpoint.MaxResponseDelay 属性

定义

获取或设置 TimeSpan 的最大值,在此时间跨度内,服务的用于响应探测操作的所有 ProbeMatches 都将发送出去。Gets or sets the maximum TimeSpan within which all of the ProbeMatches for a service that respond to a probe operation are sent.

public:
 property TimeSpan MaxResponseDelay { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan MaxResponseDelay { get; set; }
member this.MaxResponseDelay : TimeSpan with get, set
Public Property MaxResponseDelay As TimeSpan

属性值

TimeSpan

一个包含最大时间跨度的 TimeSpan 实例,在此时间跨度内,服务的用于响应探测操作的所有 ProbeMatches 都将发送出去。A TimeSpan instance that contains the maximum time span within which all of the ProbeMatches for a service that respond to a probe operation are sent.

注解

此值是一个 TimeSpan ,它指定一个时间跨度,在此时间跨度内, ProbeMatches 响应单个探测操作的所有服务都将被发送。This value is a TimeSpan that specifies a time span in which all ProbeMatches for a service that respond to a single probe operation are sent. 如果 ProbeMatches 同时发送所有邮件,则可能会导致网络风暴。If all ProbeMatches are sent at the same time, a network storm may result. 若要防止发生这 ProbeMatches 种情况,请使用每个 ProbeMatch 之间的随机延迟发送。To prevent this from occurring, ProbeMatches are sent with a random delay between each ProbeMatch. 随机延迟的范围是从 0 到 MaxResponseDelayThe random delay is in the range of 0 to MaxResponseDelay. 如果 MaxResponseDelay 设置为0,则将 ProbeMatches 在没有任何延迟的紧凑循环中发送消息。If MaxResponseDelay is set to 0, then the ProbeMatches messages are sent in a tight loop without any delay. 否则, ProbeMatches 会发送一条随机延迟的消息,以便发送所有消息所用的总时间 ProbeMatches 不会超过 MaxResponseDelayOtherwise, the ProbeMatches messages are sent with some random delay such that the total time taken to send all ProbeMatches messages does not exceed the MaxResponseDelay. 此值只与服务相关,不可用于客户端。This value is only relevant for services, it is not used by clients.

适用于