Its nodes are configured to perform multithreaded processing of the tasks using the ExecutorService interface.
其中节点被配置成使用ExecutorService接口来进行多线程处理。
As great as the ExecutorService interface is, certain tasks need to be done in a scheduled fashion, such as executing a given task at determined intervals or at a specific time.
尽管ExecutorService接口非常有用,但某些任务仍需要以计划方式执行,比如以确定的时间间隔或在特定时间执行给定的任务。
For this, the JSR-166 experts created a far more useful abstraction, the ExecutorService interface, which models the thread-starting factory as a service that can be controlled collectively.
对于此问题,JSR- 166专家创建了一个更加有用的抽象(ExecutorService接口),它将线程启动工厂建模为一个可集中控制的服务。
For example, rather than calling execute once for each task, the ExecutorService could take a collection of tasks and return a List of Futures representing the future results of each of those tasks.
例如,无需每执行一项任务就调用一次execute ,ExecutorService可以接受一组任务并返回一个表示每项任务的未来结果的未来列表。
For example, rather than calling execute once for each task, the ExecutorService could take a collection of tasks and return a List of Futures representing the future results of each of those tasks.
例如,无需每执行一项任务就调用一次execute ,ExecutorService可以接受一组任务并返回一个表示每项任务的未来结果的未来列表。
应用推荐