|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.thread.RetryTask
com.sun.jini.outrigger.Notifier.NotifyTask
private class Notifier.NotifyTask
A task that represent a notification of matching a particular template under a given transaction.
Field Summary | |
---|---|
private EventSender |
sender
Who and what to send a event to. |
Fields inherited from interface com.sun.jini.constants.TimeConstants |
---|
DAYS, HOURS, MINUTES, SECONDS |
Constructor Summary | |
---|---|
Notifier.NotifyTask(EventSender sender)
Create an object to represent this list of chits needing notification. |
Method Summary | |
---|---|
private void |
logFailure(String exceptionDescription,
Level level,
boolean terminal,
Throwable t)
Log a failed delivery attempt |
boolean |
runAfter(List list,
int max)
Return true if this task must be run after at least one task in the given task list with an index less than size (size may be less then tasks.size()). |
boolean |
tryOnce()
Try to notify the target. |
Methods inherited from class com.sun.jini.thread.RetryTask |
---|
attempt, cancel, cancelled, complete, reset, retryTime, run, startTime, waitFor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final EventSender sender
Constructor Detail |
---|
Notifier.NotifyTask(EventSender sender)
sender
- An object that on request will
attempt to deliver its event
to the associated listener.
NullPointerException
- if sender
is
null
Method Detail |
---|
public boolean tryOnce()
true
if the
notification was successful.
We know that we are the only one dealing with the given chit
because runAfter
makes sure of it.
tryOnce
in class RetryTask
public boolean runAfter(List list, int max)
TaskManager.Task
list
- the tasks to consider. A read-only List, with all
elements instanceof Task.max
- elements with index less than size should be consideredprivate void logFailure(String exceptionDescription, Level level, boolean terminal, Throwable t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |