|
||||||||||
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.norm.event.EventType.SendTask
private class EventType.SendTask
Subclass of RetryTask
used by EventType
to send events.
Field Summary | |
---|---|
private RemoteEvent |
event
Cached event |
private EventFactory |
eventFactory
Factory used to create the RemoteEvent to be sent |
private long |
eventForRegistrationNumber
Registration sequence number of the listener/handback pair event was built for |
private static long |
MAX_TIME
Max time we are willing to let a send attempt to go on for |
private long |
seqNum
Sequence number the event should have |
Fields inherited from interface com.sun.jini.constants.TimeConstants |
---|
DAYS, HOURS, MINUTES, SECONDS |
Constructor Summary | |
---|---|
private |
EventType.SendTask(TaskManager taskManager,
WakeupManager wakeupManager,
EventFactory eventFactory,
long seqNum)
Simple constructor. |
Method Summary | |
---|---|
boolean |
runAfter(List tasks,
int size)
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()
Make a single attempt. |
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 static final long MAX_TIME
private final EventFactory eventFactory
RemoteEvent
to be sent
private final long seqNum
private RemoteEvent event
private long eventForRegistrationNumber
Constructor Detail |
---|
private EventType.SendTask(TaskManager taskManager, WakeupManager wakeupManager, EventFactory eventFactory, long seqNum)
taskManager
- TaskManager
this task is to be
put intoeventFactory
- EventFactory
that will be used
to create the event to be sentseqNum
- the sequence number of the eventMethod Detail |
---|
public boolean tryOnce()
RetryTask
true
if the attempt
was successful. If the attempt is not successful, the task
will be scheduled for a future retry.
tryOnce
in class RetryTask
public boolean runAfter(List tasks, int size)
TaskManager.Task
tasks
- the tasks to consider. A read-only List, with all
elements instanceof Task.size
- elements with index less than size should be considered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |