private class ClientLeaseWrapper.FailureFactory extends Object implements EventFactory
EventFactory
that
generates RenewalFailureEvent
eventsModifier and Type | Field and Description |
---|---|
private MarshalledInstance |
marshalledLease
Client lease that could not be renewed in marshalled form
|
private MarshalledInstance |
marshalledThrowable
Throwable (if any) that was thrown when we tried to renew the lease
in marshalled form
|
private LeaseRenewalSet |
source
Source for event
|
Modifier | Constructor and Description |
---|---|
private |
ClientLeaseWrapper.FailureFactory(LeaseRenewalSet source,
MarshalledInstance marshalledLease,
MarshalledInstance marshalledThrowable)
Simple constructor
|
Modifier and Type | Method and Description |
---|---|
RemoteEvent |
createEvent(long eventID,
long seqNum,
MarshalledObject handback)
Create the concrete
RemoteEvent for the associated
event occurrence. |
private LeaseRenewalSet source
private final MarshalledInstance marshalledLease
private final MarshalledInstance marshalledThrowable
private ClientLeaseWrapper.FailureFactory(LeaseRenewalSet source, MarshalledInstance marshalledLease, MarshalledInstance marshalledThrowable)
source
- event sourcemarshalledLease
- client lease that could not be renewed
in marshalled formmarshalledThrowable
- exception (if any) that was thrown when
the lease could not be renewedpublic 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.