此内容没有您所选择的语言版本。
41.8. Closing a Handler
When a handler chain is finished processing a message, the runtime calls each executed handler's
close()
method. This is the appropriate place to clean up any resources that were used by the handler during message processing or resetting any properties to a default state.
If a resource needs to persist beyond a single message exchange, you should not clean it up during in the handler's
close()
method.