|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.outrigger.EventRegistrationWatcher.BasicEventSender
private class EventRegistrationWatcher.BasicEventSender
Common implementation of EventSender
.
Constructor Summary | |
---|---|
private |
EventRegistrationWatcher.BasicEventSender()
|
Method Summary | |
---|---|
void |
cancelRegistration()
Called when the event sending infrastructure decides to give up on the event registration associated with this sender. |
private EventRegistrationWatcher |
getOwner()
Return the EventRegistrationWatcher this
object is part of (exits because
(BasicEventSender)other).EventRegistrationWatcher. |
boolean |
runAfter(EventSender other)
Run after another event sender if it is for the same registration. |
void |
sendEvent(JavaSpace source,
long now,
ProxyPreparer preparer)
Send a remote event to the encapsulated listener of the encapsulated type, with the encapsulated handback, sequence number. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private EventRegistrationWatcher.BasicEventSender()
Method Detail |
---|
public void sendEvent(JavaSpace source, long now, ProxyPreparer preparer) throws UnknownEventException, IOException, ClassNotFoundException
EventSender
sendEvent
in interface EventSender
source
- the source the event object
sent to the lister should have.now
- The current time.preparer
- to apply to the listener if it has
been recovered from a store and not yet re-prepared
in this VM.
UnknownEventException
- if the
call to the listener does. Note, this
will not cause the watcher to remove itself.
IOException
- if the listener can not
be unmarshalled. May throw RemoteException
if the call to the listener or preparer does
ClassNotFoundException
- if the listener
needs to be unmarshalled and a necessary
class can not be found.public void cancelRegistration()
EventSender
cancelRegistration
in interface EventSender
private EventRegistrationWatcher getOwner()
EventRegistrationWatcher
this
object is part of (exits because
(BasicEventSender)other).EventRegistrationWatcher.
this
does not work.
public boolean runAfter(EventSender other)
lastSeqNumDelivered
will probably
equal currentSeqNum
when it runs).
runAfter
in interface EventSender
other
- the sender this object should compare itself too.
true
if this object should run after
other
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |