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.
|
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 |
---|
RegistrarImpl.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.
|
void |
prepareListener(ProxyPreparer preparer)
Prepares listener (if non-null) using the given proxy preparer.
|
private void |
readObject(ObjectInputStream stream)
Unmarshals the event listener.
|
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
public long leaseExpiration
public RegistrarImpl.EventReg(long eventID, Uuid leaseID, Template tmpl, int transitions, RemoteEventListener listener, MarshalledObject handback, long leaseExpiration)
public int compareTo(Object obj)
compareTo
in interface Comparable
public void prepareListener(ProxyPreparer preparer)
private void writeObject(ObjectOutputStream stream) throws IOException
IOException
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.