The BrokerConnection class implements the Runnable interface and manages client application connections to the broker.
brokerconnection类实现了Runnable接口,并且管理客户端应用程序与代理的连接。
It implements the run method of the Runnable interface and USES a thread to check if it is time to start making coffee.
它实现了Runnable接口的run方法并使用线程来检查是否该开始煮咖啡了。
As Figure 3 shows, the provider can be constructed to play a role of an asynchronous invocation handler that implements the Runnable interface.
如图3所示,可以构造提供程序来扮演实现Runnable接口的异步调用处理程序的角色。
When a setter (a member function that updates a field) of a class that implements the Runnable interface is not synchronized, then you should document your reasons why.
如果实现Runnable接口的类的setter(更新字段的成员函数)没有同步,则应该写明原因。
For example, if you wish to use multiple threads, implement the Runnable interface rather than extending the thread class.
举例来说,如果你希望使用多线程,实现Runnable接口比扩展Thread类好。
For example, if you wish to use multiple threads, implement the Runnable interface rather than extending the thread class.
举例来说,如果你希望使用多线程,实现Runnable接口比扩展Thread类好。
应用推荐