Constructor and Description |
---|
RankingReconsideration(String key) |
RankingReconsideration(String key,
long delay) |
Modifier and Type | Method and Description |
---|---|
abstract void |
applyChangesLocked(NotificationRecord record)
Apply any computed changes to the notification record.
|
boolean |
cancel(boolean mayInterruptIfRunning) |
long |
getDelay(TimeUnit unit) |
String |
getKey() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
run()
When an object implementing interface
Runnable is used
to create a thread, starting the thread causes the object's
run method to be called in that separately executing
thread. |
abstract void |
work()
Analyse the notification.
|
protected String mKey
public RankingReconsideration(String key)
public RankingReconsideration(String key, long delay)
public String getKey()
public void run()
Runnable
Runnable
is used
to create a thread, starting the thread causes the object's
run
method to be called in that separately executing
thread.
The general contract of the method run
is that it may
take any action whatsoever.
run
in interface Runnable
Thread.run()
public long getDelay(TimeUnit unit)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
public boolean isDone()
public abstract void work()
NotificationRecord
.public abstract void applyChangesLocked(NotificationRecord record)
record
- The locked record to be updated.