Uses of Interface
java.lang.Runnable
-
Packages that use Runnable 软件包 描述 java.awt 包含用于创建用户界面和绘制图形和图像的所有类。java.awt.event 提供用于处理AWT组件触发的不同类型事件的接口和类。java.awt.image.renderable 提供用于生成与渲染无关的图像的类和接口。java.lang 提供对Java编程语言设计至关重要的类。java.lang.ref 提供参考对象类,它支持与垃圾收集器的有限度的交互。java.util 包含集合框架,一些国际化支持类,一个服务加载器,属性,随机数生成,字符串解析和扫描类,base64编码和解码,一个位数组和几个其他实用程序类。java.util.concurrent 实用程序类通常用于并发编程。java.util.logging 提供Java¢2平台核心日志记录工具的类和接口。java.util.stream 支持元素流功能性操作的类,例如集合上的map-reduce转换。javafx.application 提供应用程序生命周期类。javafx.concurrent 提供javafx.task的一组类。javafx.scene 为JavaFX Scene Graph API提供核心的基类集。javafx.scene.media 提供用于将音频和视频集成到Java FX应用程序中的一组类。javax.net.ssl 为安全套接字包提供类。javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.text 提供处理可编辑和不可编辑文本组件的类和接口。 -
-
Uses of Runnable in java.awt
Methods in java.awt with parameters of type Runnable Modifier and Type 方法 描述 static voidEventQueue. invokeAndWait(Runnable runnable)static voidEventQueue. invokeLater(Runnable runnable) -
Uses of Runnable in java.awt.event
Fields in java.awt.event declared as Runnable Modifier and Type Field 描述 protected RunnableInvocationEvent. runnableRunnable的run()方法将被调用。Constructors in java.awt.event with parameters of type Runnable Constructor 描述 InvocationEvent(Object source, int id, Runnable runnable, Object notifier, boolean catchThrowables)构造一个InvocationEvent具有指定源和ID将执行可运行的run时调度方法。InvocationEvent(Object source, Runnable runnable)构造一个InvocationEvent与将执行可运行的指定的源run时调度方法。InvocationEvent(Object source, Runnable runnable, Object notifier, boolean catchThrowables)构造一个InvocationEvent与将执行可运行的指定的源run时调度方法。InvocationEvent(Object source, Runnable runnable, Runnable listener, boolean catchThrowables)构造一个InvocationEvent与将执行可运行的指定的源run时调度方法。 -
Uses of Runnable in java.awt.image.renderable
Classes in java.awt.image.renderable that implement Runnable Modifier and Type Class 描述 classRenderableImageProducer一个实现ImageProducer以允许异步生成RenderableImage的适配器类。 -
Uses of Runnable in java.lang
Classes in java.lang that implement Runnable Modifier and Type Class 描述 classThread线程是程序中执行的线程。Constructors in java.lang with parameters of type Runnable Constructor 描述 Thread(Runnable target)分配一个新的Thread对象。Thread(Runnable target, String name)分配一个新的Thread对象。Thread(ThreadGroup group, Runnable target)分配一个新的Thread对象。Thread(ThreadGroup group, Runnable target, String name)分配一个新的Thread对象,使其具有target作为其运行对象,具有指定的name作为其名称,属于由group引用的线程组。Thread(ThreadGroup group, Runnable target, String name, long stackSize)分配一个新的Thread对象,使其具有target作为其运行对象,具有指定的name作为其名称,属于group引用的线程组,并具有指定的 堆栈大小 。Thread(ThreadGroup group, Runnable target, String name, long stackSize, boolean inheritThreadLocals)分配一个新的Thread对象,使其具有target作为其运行对象,具有指定的name作为其名称,属于由group引用的线程组,具有指定的stackSize,并且如果inheritThreadLocals为true,则继承inheritable thread-local变量的初始值。 -
Uses of Runnable in java.lang.ref
Methods in java.lang.ref with parameters of type Runnable Modifier and Type 方法 描述 Cleaner.CleanableCleaner. register(Object obj, Runnable action)注册一个对象和一个清理动作,以便在对象变为幻像时可以运行。 -
Uses of Runnable in java.util
Classes in java.util that implement Runnable Modifier and Type Class 描述 classTimerTaskMethods in java.util with parameters of type Runnable Modifier and Type 方法 描述 voidOptional. ifPresentOrElse(Consumer<? super T> action, Runnable emptyAction)如果存在值,则使用该值执行给定的操作,否则执行给定的基于空的操作。voidOptionalDouble. ifPresentOrElse(DoubleConsumer action, Runnable emptyAction)如果存在值,则使用该值执行给定的操作,否则执行给定的基于空的操作。voidOptionalInt. ifPresentOrElse(IntConsumer action, Runnable emptyAction)如果存在值,则使用该值执行给定的操作,否则执行给定的基于空的操作。voidOptionalLong. ifPresentOrElse(LongConsumer action, Runnable emptyAction)如果存在值,则使用该值执行给定的操作,否则执行给定的基于空的操作。 -
Uses of Runnable in java.util.concurrent
Subinterfaces of Runnable in java.util.concurrent Modifier and Type 接口 描述 interfaceRunnableFuture<V>interfaceRunnableScheduledFuture<V>AScheduledFuture那是Runnable。Classes in java.util.concurrent that implement Runnable Modifier and Type Class 描述 classForkJoinWorkerThread一个由ForkJoinPool管理的线程,执行ForkJoinTasks。classFutureTask<V>可取消的异步计算。Methods in java.util.concurrent that return types with arguments of type Runnable Modifier and Type 方法 描述 BlockingQueue<Runnable>ScheduledThreadPoolExecutor. getQueue()返回此执行程序使用的任务队列。BlockingQueue<Runnable>ThreadPoolExecutor. getQueue()返回此执行程序使用的任务队列。List<Runnable>ExecutorService. shutdownNow()尝试停止所有主动执行的任务,停止等待任务的处理,并返回正在等待执行的任务列表。List<Runnable>ForkJoinPool. shutdownNow()可能尝试取消和/或停止所有任务,并拒绝所有后续提交的任务。List<Runnable>ScheduledThreadPoolExecutor. shutdownNow()尝试停止所有主动执行的任务,停止等待任务的处理,并返回正在等待执行的任务列表。List<Runnable>ThreadPoolExecutor. shutdownNow()尝试停止所有主动执行的任务,停止等待任务的处理,并返回正在等待执行的任务列表。Methods in java.util.concurrent with parameters of type Runnable Modifier and Type 方法 描述 static ForkJoinTask<?>ForkJoinTask. adapt(Runnable runnable)static <T> ForkJoinTask<T>ForkJoinTask. adapt(Runnable runnable, T result)protected voidThreadPoolExecutor. afterExecute(Runnable r, Throwable t)完成指定Runnable的执行后调用方法。protected voidThreadPoolExecutor. beforeExecute(Thread t, Runnable r)在给定的线程中执行给定的Runnable之前调用方法。static Callable<Object>Executors. callable(Runnable task)返回一个Callable对象,当被调用时,它运行给定的任务并返回null。static <T> Callable<T>Executors. callable(Runnable task, T result)返回一个Callable对象,当被调用时,它运行给定的任务并返回给定的结果。protected <V> RunnableScheduledFuture<V>ScheduledThreadPoolExecutor. decorateTask(Runnable runnable, RunnableScheduledFuture<V> task)修改或替换用于执行runnable的任务。voidExecutor. execute(Runnable command)在将来的某个时间执行给定的命令。voidForkJoinPool. execute(Runnable task)voidScheduledThreadPoolExecutor. execute(Runnable command)执行command零要求延迟。voidThreadPoolExecutor. execute(Runnable command)在将来某个时候执行给定的任务。protected <T> RunnableFuture<T>AbstractExecutorService. newTaskFor(Runnable runnable, T value)对于给定的可运行和默认值,返回一个RunnableFuture。protected <T> RunnableFuture<T>ForkJoinPool. newTaskFor(Runnable runnable, T value)ThreadThreadFactory. newThread(Runnable r)构造新的Thread。voidRejectedExecutionHandler. rejectedExecution(Runnable r, ThreadPoolExecutor executor)ThreadPoolExecutor当execute无法接受任务时可能调用的方法。voidThreadPoolExecutor.AbortPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)总是抛出RejectedExecutionException。voidThreadPoolExecutor.CallerRunsPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)执行调用者线程中的任务r,除非执行程序已经被关闭,否则任务被丢弃。voidThreadPoolExecutor.DiscardOldestPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)获取并忽略执行者否则将执行的下一个任务,如果一个可以立即可用,然后重试任务r的执行,除非执行程序关闭,否则任务r被替换为丢弃。voidThreadPoolExecutor.DiscardPolicy. rejectedExecution(Runnable r, ThreadPoolExecutor e)什么也没有,具有丢弃任务r的效果。booleanThreadPoolExecutor. remove(Runnable task)如果此任务存在,则从执行程序的内部队列中删除此任务,从而导致该任务尚未运行。CompletableFuture<Void>CompletableFuture. runAfterBoth(CompletionStage<?> other, Runnable action)CompletionStage<Void>CompletionStage. runAfterBoth(CompletionStage<?> other, Runnable action)返回一个新的CompletionStage,当这个和另一个给定的阶段都正常完成时,执行给定的动作。CompletableFuture<Void>CompletableFuture. runAfterBothAsync(CompletionStage<?> other, Runnable action)CompletableFuture<Void>CompletableFuture. runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor)CompletionStage<Void>CompletionStage. runAfterBothAsync(CompletionStage<?> other, Runnable action)返回一个新的CompletionStage,当这个和另一个给定阶段都正常完成时,使用此阶段的默认异步执行工具执行给定的操作。CompletionStage<Void>CompletionStage. runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor)返回一个新的CompletionStage,当这个和另一个给定的阶段都正常完成时,使用提供的执行器执行给定的动作。CompletableFuture<Void>CompletableFuture. runAfterEither(CompletionStage<?> other, Runnable action)CompletionStage<Void>CompletionStage. runAfterEither(CompletionStage<?> other, Runnable action)返回一个新的CompletionStage,当这个或另一个给定阶段正常完成时,执行给定的操作。CompletableFuture<Void>CompletableFuture. runAfterEitherAsync(CompletionStage<?> other, Runnable action)CompletableFuture<Void>CompletableFuture. runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor)CompletionStage<Void>CompletionStage. runAfterEitherAsync(CompletionStage<?> other, Runnable action)返回一个新的CompletionStage,当这个或另一个给定阶段正常完成时,使用此阶段的默认异步执行工具执行给定的操作。CompletionStage<Void>CompletionStage. runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor)返回一个新的CompletionStage,当这个或另一个给定阶段正常完成时,使用提供的执行器执行给定的操作。static CompletableFuture<Void>CompletableFuture. runAsync(Runnable runnable)返回一个新的CompletableFuture,它在运行给定操作后由运行在ForkJoinPool.commonPool()中的任务异步完成。static CompletableFuture<Void>CompletableFuture. runAsync(Runnable runnable, Executor executor)返回一个新的CompletableFuture,它在运行给定操作之后由在给定执行程序中运行的任务异步完成。ScheduledFuture<?>ScheduledExecutorService. schedule(Runnable command, long delay, TimeUnit unit)创建并执行在给定延迟后启用的单次操作。ScheduledFuture<?>ScheduledThreadPoolExecutor. schedule(Runnable command, long delay, TimeUnit unit)ScheduledFuture<?>ScheduledExecutorService. scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)创建并执行在给定的初始延迟之后,随后以给定的时间段首先启用的周期性动作; 也就是说,执行将在initialDelay之后开始,然后是initialDelay + period,然后是initialDelay + 2 * period,等等。ScheduledFuture<?>ScheduledThreadPoolExecutor. scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)ScheduledFuture<?>ScheduledExecutorService. scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)创建并执行在给定的初始延迟之后首先启用的定期动作,随后在一个执行的终止和下一个执行的开始之间给定的延迟。ScheduledFuture<?>ScheduledThreadPoolExecutor. scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)Future<?>AbstractExecutorService. submit(Runnable task)<T> Future<T>AbstractExecutorService. submit(Runnable task, T result)Future<V>CompletionService. submit(Runnable task, V result)提交一个可运行的任务执行,并返回一个表示该任务的未来。Future<V>ExecutorCompletionService. submit(Runnable task, V result)Future<?>ExecutorService. submit(Runnable task)提交一个可运行的任务执行,并返回一个表示该任务的未来。<T> Future<T>ExecutorService. submit(Runnable task, T result)提交一个可运行的任务执行,并返回一个表示该任务的未来。ForkJoinTask<?>ForkJoinPool. submit(Runnable task)<T> ForkJoinTask<T>ForkJoinPool. submit(Runnable task, T result)Future<?>ScheduledThreadPoolExecutor. submit(Runnable task)<T> Future<T>ScheduledThreadPoolExecutor. submit(Runnable task, T result)CompletableFuture<Void>CompletableFuture. thenRun(Runnable action)CompletionStage<Void>CompletionStage. thenRun(Runnable action)返回一个新的CompletionStage,当此阶段正常完成时,执行给定的操作。CompletableFuture<Void>CompletableFuture. thenRunAsync(Runnable action)CompletableFuture<Void>CompletableFuture. thenRunAsync(Runnable action, Executor executor)CompletionStage<Void>CompletionStage. thenRunAsync(Runnable action)返回一个新的CompletionStage,当此阶段正常完成时,使用此阶段的默认异步执行工具执行给定的操作。CompletionStage<Void>CompletionStage. thenRunAsync(Runnable action, Executor executor)返回一个新的CompletionStage,当此阶段正常完成时,使用提供的执行程序执行给定的操作。Constructors in java.util.concurrent with parameters of type Runnable Constructor 描述 CyclicBarrier(int parties, Runnable barrierAction)创建一个新的CyclicBarrier,当给定数量的线程(线程)等待时,它将跳闸,当屏障跳闸时执行给定的屏障动作,由最后一个线程进入屏障执行。FutureTask(Runnable runnable, V result)创建一个FutureTask,将在运行时执行给定的Runnable,并安排get将在成功完成后返回给定的结果。Constructor parameters in java.util.concurrent with type arguments of type Runnable Constructor 描述 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue)创建一个新的ThreadPoolExecutor与给定的初始参数和默认线程工厂和拒绝的执行处理程序。ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, RejectedExecutionHandler handler)创建一个新的ThreadPoolExecutor与给定的初始参数和默认线程工厂。ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory)创建一个新的ThreadPoolExecutor与给定的初始参数和默认拒绝执行处理程序。ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler)使用给定的初始参数创建一个新的ThreadPoolExecutor。 -
Uses of Runnable in java.util.logging
Methods in java.util.logging with parameters of type Runnable Modifier and Type 方法 描述 LogManagerLogManager. addConfigurationListener(Runnable listener)添加每次读取日志配置时调用的配置监听器。voidLogManager. removeConfigurationListener(Runnable listener)删除以前注册的配置监听器。 -
Uses of Runnable in java.util.stream
Methods in java.util.stream with parameters of type Runnable Modifier and Type 方法 描述 SBaseStream. onClose(Runnable closeHandler)返回带有附加关闭处理程序的等效流。 -
Uses of Runnable in javafx.application
Methods in javafx.application with parameters of type Runnable Modifier and Type 方法 描述 static voidPlatform. runLater(Runnable runnable)在将来某些未指定的时间运行JavaFX应用程序线程上指定的Runnable。static voidPlatform. startup(Runnable runnable)此方法启动JavaFX运行时。 -
Uses of Runnable in javafx.concurrent
Classes in javafx.concurrent that implement Runnable Modifier and Type Class 描述 classTask<V>一个完全可观察到的一个FutureTask的实现。 -
Uses of Runnable in javafx.scene
Methods in javafx.scene that return types with arguments of type Runnable Modifier and Type 方法 描述 ObservableMap<KeyCombination,Runnable>Scene. getAccelerators()获取此Scene的加速器列表。Methods in javafx.scene with parameters of type Runnable Modifier and Type 方法 描述 voidScene. addPostLayoutPulseListener(Runnable r)在这个场景中添加一个新的场景布局脉冲侦听器。voidScene. addPreLayoutPulseListener(Runnable r)在这个场景中添加一个新的场景预布置脉冲监听器。voidScene. removePostLayoutPulseListener(Runnable r)从这个场景中的脉冲中删除先前注册的场景布局脉冲侦听器。voidScene. removePreLayoutPulseListener(Runnable r)从此场景中的脉冲中删除先前注册的场景预布置脉冲侦听器。 -
Uses of Runnable in javafx.scene.media
Methods in javafx.scene.media that return Runnable Modifier and Type 方法 描述 RunnableMediaPlayer. getOnEndOfMedia()检索媒体事件处理程序的结束。RunnableMedia. getOnError()如果发生错误,则检索要调用的错误处理程序。RunnableMediaPlayer. getOnError()检索错误的事件处理程序。RunnableMediaPlayer. getOnHalted()检索MediaPlayer.Status.HALTED事件处理程序。RunnableMediaPlayer. getOnPaused()检索MediaPlayer.Status.PAUSED事件处理程序。RunnableMediaPlayer. getOnPlaying()检索MediaPlayer.Status.PLAYING事件处理程序。RunnableMediaPlayer. getOnReady()检索MediaPlayer.Status.READY事件处理程序。RunnableMediaPlayer. getOnRepeat()检索重复事件处理程序。RunnableMediaPlayer. getOnStalled()检索MediaPlayer.Status.STALLED事件处理程序。RunnableMediaPlayer. getOnStopped()检索MediaPlayer.Status.STOPPED事件处理程序。Methods in javafx.scene.media that return types with arguments of type Runnable Modifier and Type 方法 描述 ObjectProperty<Runnable>MediaPlayer. onEndOfMediaProperty()当播放器currentTime达到stopTime时调用事件处理程序。ObjectProperty<Runnable>Media. onErrorProperty()发生错误时调用事件处理程序。ObjectProperty<Runnable>MediaPlayer. onErrorProperty()发生错误时调用事件处理程序。ObjectProperty<Runnable>MediaPlayer. onHaltedProperty()事件处理程序在状态更改为HALTED时调用。ObjectProperty<Runnable>MediaPlayer. onPausedProperty()事件处理程序在状态更改为PAUSED时调用。ObjectProperty<Runnable>MediaPlayer. onPlayingProperty()当状态更改为PLAYING时调用事件处理程序。ObjectProperty<Runnable>MediaPlayer. onReadyProperty()事件处理程序在状态更改为READY时调用。ObjectProperty<Runnable>MediaPlayer. onRepeatProperty()当玩家的事件处理函数调用currentTime达到stopTime, 将被重复。ObjectProperty<Runnable>MediaPlayer. onStalledProperty()事件处理程序在状态更改为STALLED时调用。ObjectProperty<Runnable>MediaPlayer. onStoppedProperty()事件处理程序在状态更改为STOPPED时调用。Methods in javafx.scene.media with parameters of type Runnable Modifier and Type 方法 描述 voidMediaPlayer. setOnEndOfMedia(Runnable value)设置媒体事件处理程序的结束。voidMedia. setOnError(Runnable value)设置发生错误时调用的事件处理程序。voidMediaPlayer. setOnError(Runnable value)设置发生错误时调用的事件处理程序。voidMediaPlayer. setOnHalted(Runnable value)设置MediaPlayer.Status.HALTED事件处理程序。voidMediaPlayer. setOnPaused(Runnable value)设置MediaPlayer.Status.PAUSED事件处理程序。voidMediaPlayer. setOnPlaying(Runnable value)设置MediaPlayer.Status.PLAYING事件处理程序。voidMediaPlayer. setOnReady(Runnable value)设置MediaPlayer.Status.READY事件处理程序。voidMediaPlayer. setOnRepeat(Runnable value)设置重复事件处理程序。voidMediaPlayer. setOnStalled(Runnable value)设置MediaPlayer.Status.STALLED事件处理程序。voidMediaPlayer. setOnStopped(Runnable value)设置MediaPlayer.Status.STOPPED事件处理程序。 -
Uses of Runnable in javax.net.ssl
Methods in javax.net.ssl that return Runnable Modifier and Type 方法 描述 abstract RunnableSSLEngine. getDelegatedTask()返回此SSLEngine的委托Runnable任务。 -
Uses of Runnable in javax.swing
Classes in javax.swing that implement Runnable Modifier and Type Class 描述 classSwingWorker<T,V>在后台线程中执行冗长的GUI交互任务的抽象类。Methods in javax.swing with parameters of type Runnable Modifier and Type 方法 描述 static voidSwingUtilities. invokeAndWait(Runnable doRun)导致在AWT事件调度线程上同步执行doRun.run()。static voidSwingUtilities. invokeLater(Runnable doRun)导致 doRun.run()在AWT事件分派线程上异步执行。 -
Uses of Runnable in javax.swing.text
Classes in javax.swing.text that implement Runnable Modifier and Type Class 描述 classAsyncBoxView.ChildState表示子视图的布局状态的记录。Methods in javax.swing.text that return Runnable Modifier and Type 方法 描述 protected RunnableLayoutQueue. waitForWork()由工作线程用来获取一个新的任务来执行。Methods in javax.swing.text with parameters of type Runnable Modifier and Type 方法 描述 voidLayoutQueue. addTask(Runnable task)添加一个不需要立即执行的任务,因为结果不被认为是可见的。voidAbstractDocument. render(Runnable r)如果模型支持异步更新,则可以在存在货币的情况下安全地呈现模型。voidDocument. render(Runnable r)如果模型支持异步更新,则允许在存在并发性的情况下安全地呈现模型。
-