{"id":317169,"date":"2021-02-04T16:54:07","date_gmt":"2021-02-04T08:54:07","guid":{"rendered":"http:\/\/4563.org\/?p=317169"},"modified":"2021-02-04T16:54:07","modified_gmt":"2021-02-04T08:54:07","slug":"%e8%af%b7%e6%95%99%e4%b8%80%e4%b8%aa%e9%97%ae%e9%a2%98%ef%bc%8c-threadpoolexecutor-execute%ef%bc%89%e8%83%bd%e8%a2%ab-aop-%e5%a2%9e%e5%bc%ba%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=317169","title":{"rendered":"\u8bf7\u6559\u4e00\u4e2a\u95ee\u9898\uff0c threadPoolExecutor.execute(\uff09\u80fd\u88ab AOP \u589e\u5f3a\u5417\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u6559\u4e00\u4e2a\u95ee\u9898\uff0c threadPoolExecutor.execute(\uff09\u80fd\u88ab AOP \u589e\u5f3a\u5417\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gengzi <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u60f3\u5728\u7ebf\u7a0b\u6267\u884c\u524d\uff0c\u6267\u884c\u540e\uff0c\u505a\u4e00\u4e9b\u4e8b\u60c5<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5006301\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zxlzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u884c\uff0c\u53ea\u80fd\u662f Spring \u4ee3\u7406\u7684\u7c7b\uff0c\u4f46\u662f\u4f60\u53ef\u4ee5\u901a\u8fc7\u7ee7\u627f ThreadPoolExecutor, \u7136\u540e\u91cd\u8f7d execute() \u65b9\u6cd5\u5b9e\u73b0                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5006302\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : senninha <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ASM \u63d2\u5165\u903b\u8f91\u751f\u6210\u5b57\u8282\u7801\uff0c\u7136\u540e redefine \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5006303\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fantastM <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             &gt; \u60f3\u5728\u7ebf\u7a0b\u6267\u884c\u524d\uff0c\u6267\u884c\u540e\uff0c\u505a\u4e00\u4e9b\u4e8b\u60c5<\/p>\n<p>ThreadPoolExecutor \u5185\u90e8\u63d0\u4f9b\u4e86\u4e24\u4e2a\u94a9\u5b50\u65b9\u6cd5 beforeExecute(Thread, Runnable) \u548c afterExecute(Runnable, Throwable)\uff0c\u6b63\u597d\u7b26\u5408\u4f60\u7684\u9700\u6c42\u3002\u5177\u4f53\u7684\u770b\u6e90\u7801\u5c31\u6e05\u695a\u4e86 https:\/\/github.com\/openjdk\/jdk\/blob\/jdk8-b21\/jdk\/src\/share\/classes\/java\/util\/concurrent\/ThreadPoolExecutor.java#L1098-L1130                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5006304\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hangszhang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u94a9\u5b50\u554a, \u7ee7\u627f ThreadPoolExecutor \u4e4b\u540e\u5b9e\u73b0\u5c31\u597d\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5006305\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : oneisall8955 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             thread\/task \u7528 abstract \u5c01\u88c5\u6210 base thread\uff0c\u91cc\u9762\u52a0\u4e2a abstract \u7684 before \u65b9\u6cd5\uff0crun \u65b9\u6cd5\u91cd\u8f7d\u5148\u6267\u884c before \u518d\u6267\u884c\u5177\u4f53\u7684 execute \u65b9\u6cd5\u3002\u6700\u540e\u5177\u4f53\u5b50\u7c7b\u5b9e\u73b0 before \uff1f<br \/>\u968f\u4fbf\u60f3\u60f3\uff0c\u4e0d\u77e5\u9053\u53ef\u4e0d\u53ef                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5006306\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : gengzi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zxlzy <br \/>@senninha <br \/>@fantastM <br \/>@hangszhang <br \/>@oneisall8955  <br \/>\u4e3b\u8981\u662f\u60f3\uff0c\u4e0d\u4fee\u6539\u4e4b\u524d\u7684\u903b\u8f91\uff0c\u4e5f\u80fd\u589e\u5f3a\u539f\u6709\u7684\u65b9\u6cd5\u3002\u611f\u8c22\u5404\u4f4d\u5927\u4f6c\u7684\u601d\u8def\uff0c\u6211\u53bb\u7785\u7785                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5006307\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : eaglewangl37670 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fantastM \u5b66\u5230\u4e86\uff0c\u611f\u8c22\u8001\u54e5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5006308\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fantastM <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @eaglewangl37670 #7 \u4e0d\u59a8\u770b\u770b\u6211\u535a\u5ba2\u91cc\u7684\u8fd9\u7bc7\u6587\u7ae0\uff0c\u5bf9\u7ebf\u7a0b\u6c60\u7684\u6e90\u7801\u5206\u6790\u5f97\u66f4\u591a \ud83d\ude42 <\/p>\n<p>https:\/\/blog.fantasticmao.cn\/2020\/10\/01\/java-threadpoolexecutor-\u6e90\u7801\u5206\u6790 \/                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6559\u4e00\u4e2a\u95ee\u9898\uff0c threadPoo&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/317169"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=317169"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/317169\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=317169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=317169"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=317169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}