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方法并使用线程来检查是否该开始煮咖啡了。
For example, if you wish to use multiple threads, implement the Runnable interface rather than extending the thread class.
举例来说,如果你希望使用多线程,实现Runnable接口比扩展Thread类好。
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(更新字段的成员函数)没有同步,则应该写明原因。
As with the Work interface, this class extends Runnable, and Timer invokes the run method at the appropriate times.
同使用Work接口时一样,这个类扩展了Runnable,而且Timer会在适当的时间调用run方法。
The Executor interface accepts Runnable objects to execute.
Executor接口接受Runnable对象并执行。
The Executor interface has a single method - execute - that accepts the Runnable parameter.
Executor接口有一个execute方法,它接受Runnable参数。
The java.util.concurrent.Executor interface has only a single method: execute (Runnable).
Executor接口仅有一个方法:execute (Runnable)。
The java.util.concurrent.Executor interface has only a single method: execute (Runnable).
Executor接口仅有一个方法:execute (Runnable)。
应用推荐