endpoint.busy
当 endpoint.busy
设置为 true 时,端点将暂时拒绝创建新会话。读/写。
¥When endpoint.busy
is set to true, the endpoint will temporarily reject
new sessions from being created. Read/write.
// Mark the endpoint busy. New sessions will be prevented.
endpoint.busy = true;
// Mark the endpoint free. New session will be allowed.
endpoint.busy = false;
当端点负载过重且需要在追赶时暂时拒绝新会话时,busy
属性很有用。
¥The busy
property is useful when the endpoint is under heavy load and needs to
temporarily reject new sessions while it catches up.