private static final class RegistrarImpl.EventTask extends Object implements java.util.concurrent.Callable<Boolean>, Comparable<RegistrarImpl.EventTask>
Modifier and Type | Field and Description |
---|---|
private Item |
item
The new state of the item, or null if deleted
|
private RemoteEventListener |
listener |
private long |
now |
private RegistrarProxy |
proxy |
private RegistrarImpl.EventReg |
reg
The event registration
|
private Registrar |
registrar |
private long |
seqNo
The sequence number of this event
|
private ServiceID |
sid
The service id
|
private int |
transition
The transition that fired
|
Constructor and Description |
---|
EventTask(RegistrarImpl.EventReg reg,
ServiceID sid,
Item item,
int transition,
RegistrarProxy proxy,
Registrar registrar,
long now)
Simple constructor, except increments reg.seqNo.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
call()
Send the event
|
int |
compareTo(RegistrarImpl.EventTask o)
Keep events going to the same listener ordered.
|
private final RegistrarImpl.EventReg reg
private final long seqNo
private final ServiceID sid
private final Item item
private final int transition
private final RegistrarProxy proxy
private final Registrar registrar
private final long now
private final RemoteEventListener listener
public EventTask(RegistrarImpl.EventReg reg, ServiceID sid, Item item, int transition, RegistrarProxy proxy, Registrar registrar, long now)
public Boolean call() throws Exception
call
in interface java.util.concurrent.Callable<Boolean>
Exception
public int compareTo(RegistrarImpl.EventTask o)
compareTo
in interface Comparable<RegistrarImpl.EventTask>
o
- Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.