|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventFactory
Factory interface for creating
net.jini.core.event.RemoteEvent
. An object of this
type is passed to each call of EventType.sendEvent
and
is used by the EventType
object to generate the
concrete RemoteEvent
associated with a given event
occurrence on demand. Providing a factory to sendEvent
instead of an actual RemoteEvent
object allows
eventType
object to send an event originally
intended for one listener to another.
EventType
,
EventType.sendEvent(com.sun.jini.norm.event.EventFactory)
Method Summary | |
---|---|
RemoteEvent |
createEvent(long eventID,
long seqNum,
MarshalledObject handback)
Create the concrete RemoteEvent for the associated
event occurrence. |
Method Detail |
---|
RemoteEvent createEvent(long eventID, long seqNum, MarshalledObject handback)
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.
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 have
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |