|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SendMonitor
Object associated with an EventType
so it can ensure
that the lease on an event notification is still valid and notify
the client when a exception occurs in the course of attempting to
send an event.
EventType
,
EventTypeGenerator
Method Summary | |
---|---|
void |
definiteException(EventType type,
RemoteEvent ev,
long registrationNumber,
Throwable t)
Method called when an attempt to send the event associated with this object results in a definite exception (e.g. |
boolean |
isCurrent()
Should return true if the lease associated with this
event is still valid and false otherwise. |
Method Detail |
---|
void definiteException(EventType type, RemoteEvent ev, long registrationNumber, Throwable t)
java.rmi.NoSuchObjectException
or any other
Throwable
that is not a subclass of
java.rmi.RemoteException
.
The caller will own no locks when calling this method.
type
- the object that generated the eventev
- the remote event that could not be sentregistrationNumber
- of the event registration that
generated the exception. This can be used
to call EventType.clearListenerIfSequenceMatch
ensure only the registration that cause the problem
gets cleared.t
- the definite exception that caused us to give up
sending the eventboolean isCurrent()
true
if the lease associated with this
event is still valid and false
otherwise.
The caller will own no locks when calling this method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |