com.sun.jini.reggie
Class RegistrarImpl.EventTask

java.lang.Object
  extended by com.sun.jini.reggie.RegistrarImpl.EventTask
All Implemented Interfaces:
TaskManager.Task, Runnable
Enclosing class:
RegistrarImpl

private final class RegistrarImpl.EventTask
extends Object
implements TaskManager.Task

An event to be sent, and the listener to send it to.


Field Summary
 Item item
          The new state of the item, or null if deleted
 RegistrarImpl.EventReg reg
          The event registration
 long seqNo
          The sequence number of this event
 ServiceID sid
          The service id
 int transition
          The transition that fired
 
Constructor Summary
RegistrarImpl.EventTask(RegistrarImpl.EventReg reg, ServiceID sid, Item item, int transition)
          Simple constructor, except increments reg.seqNo.
 
Method Summary
 void run()
          Send the event
 boolean runAfter(List tasks, int size)
          Keep events going to the same listener ordered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reg

public final RegistrarImpl.EventReg reg
The event registration


seqNo

public final long seqNo
The sequence number of this event


sid

public final ServiceID sid
The service id


item

public final Item item
The new state of the item, or null if deleted


transition

public final int transition
The transition that fired

Constructor Detail

RegistrarImpl.EventTask

public RegistrarImpl.EventTask(RegistrarImpl.EventReg reg,
                               ServiceID sid,
                               Item item,
                               int transition)
Simple constructor, except increments reg.seqNo.

Method Detail

run

public void run()
Send the event

Specified by:
run in interface Runnable

runAfter

public boolean runAfter(List tasks,
                        int size)
Keep events going to the same listener ordered.

Specified by:
runAfter in interface TaskManager.Task
Parameters:
tasks - the tasks to consider. A read-only List, with all elements instanceof Task.
size - elements with index less than size should be considered


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.