com.sun.jini.norm
Class ClientLeaseWrapper.FailureFactory

java.lang.Object
  extended by com.sun.jini.norm.ClientLeaseWrapper.FailureFactory
All Implemented Interfaces:
EventFactory
Enclosing class:
ClientLeaseWrapper

private class ClientLeaseWrapper.FailureFactory
extends Object
implements EventFactory

Nested top-level implementation of EventFactory that generates RenewalFailureEvent events


Field Summary
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
 
Constructor Summary
private ClientLeaseWrapper.FailureFactory(LeaseRenewalSet source, MarshalledInstance marshalledLease, MarshalledInstance marshalledThrowable)
          Simple constructor
 
Method Summary
 RemoteEvent createEvent(long eventID, long seqNum, MarshalledObject handback)
          Create the concrete RemoteEvent for the associated event occurrence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

private LeaseRenewalSet source
Source for event


marshalledLease

private final MarshalledInstance marshalledLease
Client lease that could not be renewed in marshalled form


marshalledThrowable

private final MarshalledInstance marshalledThrowable
Throwable (if any) that was thrown when we tried to renew the lease in marshalled form

Constructor Detail

ClientLeaseWrapper.FailureFactory

private ClientLeaseWrapper.FailureFactory(LeaseRenewalSet source,
                                          MarshalledInstance marshalledLease,
                                          MarshalledInstance marshalledThrowable)
Simple constructor

Parameters:
source - event source
marshalledLease - client lease that could not be renewed in marshalled form
marshalledThrowable - exception (if any) that was thrown when the lease could not be renewed
Method Detail

createEvent

public RemoteEvent createEvent(long eventID,
                               long seqNum,
                               MarshalledObject handback)
Description copied from interface: EventFactory
Create the concrete 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.

Specified by:
createEvent in interface EventFactory
Parameters:
eventID - the event ID the new event should have
seqNum - the sequence number the new event object should have
handback - the handback the new event object should have
Returns:
the new event object


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.