private static final class RegistrarImpl.EventReg extends Object implements Comparable, Serializable
Modifier and Type | Field and Description |
---|---|
long |
eventID
The event id.
|
MarshalledObject |
handback
The handback object.
|
private long |
leaseExpiration
The lease expiration time.
|
Uuid |
leaseID
The lease id.
|
RemoteEventListener |
listener
The event listener.
|
long |
seqNo
The current sequence number.
|
private static long |
serialVersionUID |
Template |
tmpl
The template to match.
|
int |
transitions
The transitions.
|
Constructor and Description |
---|
EventReg(long eventID,
Uuid leaseID,
Template tmpl,
int transitions,
RemoteEventListener listener,
MarshalledObject handback,
long leaseExpiration)
Simple constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj)
Primary sort by leaseExpiration, secondary by eventID.
|
boolean |
equals(Object o) |
(package private) long |
getLeaseExpiration() |
(package private) long |
getSeqNo() |
int |
hashCode() |
(package private) long |
incrementAndGetSeqNo() |
(package private) void |
prepareListener(ProxyPreparer preparer)
Prepares listener (if non-null) using the given proxy preparer.
|
private void |
readObject(ObjectInputStream stream)
Unmarshals the event listener.
|
(package private) void |
setLeaseExpiration(long leaseExpiration) |
private void |
writeObject(ObjectOutputStream stream) |
private static final long serialVersionUID
public final long eventID
public final Uuid leaseID
public final Template tmpl
public final int transitions
public long seqNo
public transient RemoteEventListener listener
public final MarshalledObject handback
private long leaseExpiration
public EventReg(long eventID, Uuid leaseID, Template tmpl, int transitions, RemoteEventListener listener, MarshalledObject handback, long leaseExpiration)
long incrementAndGetSeqNo()
long getSeqNo()
public int compareTo(Object obj)
compareTo
in interface Comparable
void prepareListener(ProxyPreparer preparer)
private void writeObject(ObjectOutputStream stream) throws IOException
IOException
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
long getLeaseExpiration()
void setLeaseExpiration(long leaseExpiration)
leaseExpiration
- the leaseExpiration to setCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.