Skip to content

Commit

Permalink
Make org.apache.dubbo.common.constants.CommonConstants.THREAD_NAME_KE…
Browse files Browse the repository at this point in the history
…Y work (#5701)
  • Loading branch information
manzhizhen committed Jan 31, 2020
1 parent c6413a9 commit 28ec1f8
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ public class ProtocolConfig extends AbstractConfig {
*/
private String threadpool;

/**
* Thread pool name
*/
private String threadname;

/**
* Thread pool core thread size
*/
Expand Down Expand Up @@ -263,6 +268,14 @@ public void setThreadpool(String threadpool) {
this.threadpool = threadpool;
}

public String getThreadname() {
return threadname;
}

public void setThreadname(String threadname) {
this.threadname = threadname;
}

public Integer getCorethreads() {
return corethreads;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public class ProviderConfig extends AbstractServiceConfig {
*/
private String threadpool;

/**
* Thread pool name
*/
private String threadname;

/**
* Thread pool size (fixed size)
*/
Expand Down Expand Up @@ -211,6 +216,14 @@ public void setThreadpool(String threadpool) {
this.threadpool = threadpool;
}

public String getThreadname() {
return threadname;
}

public void setThreadname(String threadname) {
this.threadname = threadname;
}

public Integer getThreads() {
return threads;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,11 @@
<xsd:documentation><![CDATA[ The thread pool type. ]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="threadname" type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[ The thread pool name. ]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="threads" type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[ The thread pool size. ]]></xsd:documentation>
Expand Down Expand Up @@ -1216,6 +1221,11 @@
<xsd:documentation><![CDATA[ The thread pool type. ]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="threadname" type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[ The thread pool name. ]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="threads" type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[ The thread pool size. ]]></xsd:documentation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,11 @@
<xsd:documentation><![CDATA[ The thread pool type. ]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="threadname" type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[ The thread pool name. ]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="threads" type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[ The thread pool size. ]]></xsd:documentation>
Expand Down Expand Up @@ -1216,6 +1221,11 @@
<xsd:documentation><![CDATA[ The thread pool type. ]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="threadname" type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[ The thread pool name. ]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="threads" type="xsd:string">
<xsd:annotation>
<xsd:documentation><![CDATA[ The thread pool size. ]]></xsd:documentation>
Expand Down

0 comments on commit 28ec1f8

Please sign in to comment.