The AuthorizedCalls bean (shown in Listing 13) provides thread-safe methods for managing the set of authorized calls.
Authorized Calls bean(见清单13)提供了一些线程安全的方法,用于管理这个经过授权的调用的集合。
In some situations, the methods you implement might be called from more than one thread, and therefore must be written to be thread-safe.
在某些场合,方法可能会从不止一个线程中被调用,因此这些方法必须是写成线程安全的。
Because these methods might be called from any number of threads at the same time, they too must be implemented to be thread-safe.
因为这些方法可能会从很多线程同时调用,它们也必须实现为线程安全的。
应用推荐