public interface EventFactory
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)
Modifier and Type | Method and Description |
---|---|
RemoteEvent |
createEvent(long eventID,
long seqNum,
MarshalledObject handback)
Create the concrete
RemoteEvent for the associated
event occurrence. |
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 haveCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.