|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.norm.NormServerBaseImpl.SendMonitorImpl
private class NormServerBaseImpl.SendMonitorImpl
The implementation of SendMonitor
we use to track
event delivery threads. Each set gets its own object.
Field Summary | |
---|---|
private LeaseSet |
set
Set this is the monitor for |
Constructor Summary | |
---|---|
private |
NormServerBaseImpl.SendMonitorImpl(LeaseSet set)
Simple constructor. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final LeaseSet set
Constructor Detail |
---|
private NormServerBaseImpl.SendMonitorImpl(LeaseSet set)
set
- the set this monitor is associated withMethod Detail |
---|
public void definiteException(EventType type, RemoteEvent ev, long registrationNumber, Throwable t)
SendMonitor
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.
definiteException
in interface SendMonitor
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 eventpublic boolean isCurrent()
SendMonitor
true
if the lease associated with this
event is still valid and false
otherwise.
The caller will own no locks when calling this method.
isCurrent
in interface SendMonitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |