Runnable interface introduction (Chinese Document)

Source: Internet
Author: User

Package(Package)

Java. Lang

Interfaces(Interface)

Runnable

Represents a command that can be executed.

Indicates a command that can be executed.

Public interface(Public interface)

Runnable

Java. Lang. runnable

Known indirect subclasses(Indirect subclass known)

Animationdrawable

An object used to create frame-by-frame animations, defined by a series of drawable objects, which can be used as a view object's background.

A Frame Animation object that is often created by a series of drawable objects and can be used as the background of a view object.

Cookiesyncmanager

The cookiesyncmanager is used to synchronize the browser cookie store between RAM and permanent storage.

Cookiesyncmanager often synchronizes Cookies stored between random memory and permanent memory by browsers.

Futuretask <v>

A cancellable asynchronous computation.

A deletable asynchronous computing.

Handlerthread

Handy class for starting a new thread that has a logoff.

Start a convenient class for a new thread with logoff.

Refqueueworker

A worker thread for processing queued references.

A worker thread that processes queue references.

Renderscript. rserrorhandler

Runtime error base class.

Runtime error base class.

Renderscript. rsmessagehandler

Base Class Application shoshould derive from for handling Rs messages coming from their scripts.

Runnablefuture <v>

A future that is runnable.

Runnablescheduledfuture <v>

A scheduledfuture that is runnable.

Thread

A thread is a concurrent unit of execution.

A thread is a concurrent execution unit.

Timertask

The timertask class represents a task to run at a specified time.

The timertask class indicates a task that runs at a specified time.

Class Overview(Class overview)

Represents a command that can be executed. Often used to run code in a different thread.

Represents a executable command. It is often used to run code in a different thread.

Summary(Abstract)

Public Methods(Public method)

Abstract void

Run ()

 

Starts executing the active part of the class 'Code.

The active part of the code that starts the execution class.

Public Methods(Public method)

Public abstract void run ()

Starts executing the active part of the class 'Code. This method is called when a thread is started that has been created with a class which implements runnable.

The active part of the code that starts the execution class. This method is called when a class implementing the runnable interface is created to start with its thread.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.