Added in API level 1

ThreadPoolExecutor.DiscardPolicy

public static class ThreadPoolExecutor.DiscardPolicy
extends Object implements RejectedExecutionHandler



A handler for rejected tasks that silently discards the rejected task.

Summary

Public constructors

DiscardPolicy()

Creates a DiscardPolicy.

Public methods

void rejectedExecution(Runnable r, ThreadPoolExecutor e)

Does nothing, which has the effect of discarding task r.

Inherited methods

Public constructors

DiscardPolicy

Added in API level 1
public DiscardPolicy ()

Creates a DiscardPolicy.

Public methods

rejectedExecution

Added in API level 1
public void rejectedExecution (Runnable r, 
                ThreadPoolExecutor e)

Does nothing, which has the effect of discarding task r.