com.sun.jini.norm
Class LeaseSet.WarningFactory

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

private class LeaseSet.WarningFactory
extends Object
implements EventFactory

Nested class that implements EventFactory that generates ExpirationWarningEvents.


Field Summary
private  SetProxy proxy
          The source for the event
private static long serialVersionUID
           
 
Constructor Summary
LeaseSet.WarningFactory(LeaseSet set)
          Create a new WarningFactory
 
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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

proxy

private final SetProxy proxy
The source for the event

Constructor Detail

LeaseSet.WarningFactory

LeaseSet.WarningFactory(LeaseSet set)
Create a new WarningFactory

Parameters:
set - The set generating this event
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.