private class LeaseSet.WarningFactory extends Object implements EventFactory
EventFactory
that
generates ExpirationWarningEvent
s.Modifier and Type | Field and Description |
---|---|
private SetProxy |
proxy
The source for the event
|
private static long |
serialVersionUID |
Constructor and Description |
---|
LeaseSet.WarningFactory(LeaseSet set)
Create a new WarningFactory
|
Modifier and Type | Method and Description |
---|---|
RemoteEvent |
createEvent(long eventID,
long seqNum,
MarshalledObject handback)
Create the concrete
RemoteEvent for the associated
event occurrence. |
private static final long serialVersionUID
private final SetProxy proxy
LeaseSet.WarningFactory(LeaseSet set)
set
- The set generating this eventpublic RemoteEvent createEvent(long eventID, long seqNum, MarshalledObject handback)
EventFactory
RemoteEvent
for the associated
event occurrence. Implementations should allow for the
possibility of being called with the same argument more that
once, especially the same eventID and seqNum. The factory
should not mutate the event after it returns it.
The caller will own no locks when calling this method.
createEvent
in interface EventFactory
eventID
- the event ID the new event should haveseqNum
- the sequence number the new event object should havehandback
- the handback the new event object should haveCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.