Skip to content

Commit

Permalink
future(provider): future:server support timeout interrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaswu0 committed Dec 19, 2024
1 parent a37af5e commit e2b2d2b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class ProviderConfig<T> implements Cloneable {
protected int requestTimeout;

/**
* Enable execute timeout interrupt.
* Whether to enable execute timeout interrupt.
*/
@ConfigProperty(value="false",type=Boolean.class,override = true)
protected Boolean enableTimeoutInterrupt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ public class ServerConfig {
*/
@ConfigProperty(value = "false", type = Boolean.class)
protected Boolean enableLinkTimeout;
/**
* Whether to enable execute timeout interrupt.
*/
@ConfigProperty(value="false",type=Boolean.class)
protected Boolean enableTimeoutInterrupt;
/**
* Whether to disable default filters:
* <p>{@link com.tencent.trpc.core.filter.ProviderInvokerHeadFilter}</p>
Expand Down Expand Up @@ -413,4 +418,13 @@ public void setRunListeners(List<String> runListeners) {
this.runListeners = runListeners;
}

public Boolean getEnableTimeoutInterrupt() {
return enableTimeoutInterrupt;
}

public void setEnableTimeoutInterrupt(Boolean enableTimeoutInterrupt) {
checkFiledModifyPrivilege();
this.enableTimeoutInterrupt = enableTimeoutInterrupt;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public class ServiceConfig extends BaseProtocolConfig {
@ConfigProperty(value = "false", type = Boolean.class, override = true)
protected Boolean enableLinkTimeout;
/**
* Enable execute timeout interrupt.
* Whether to enable execute timeout interrupt.
*/
@ConfigProperty(value="false",type=Boolean.class,override = true)
protected Boolean enableTimeoutInterrupt;
Expand Down

0 comments on commit e2b2d2b

Please sign in to comment.