|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.captp.jcomm.RemoteHandler | +--net.captp.jcomm.RemotePromiseHandler
Handles an unresolved remote reference (a RemotePromise).
Field Summary | |
(package private) CapTPConnection |
myConn
Connection to the vat I point into |
private boolean |
myFreshFlag
Flag to remember whether any E-level messages have been sent over me. |
(package private) ProxyResolver |
myResolver
The Resolver of our Proxy, which also revives the Proxy on demand. |
Constructor Summary | |
(package private) |
RemotePromiseHandler(CapTPConnection connection,
int pos)
Construct a new RemotePromiseHandler. |
Method Summary | |
(package private) void |
countWireRef()
|
(package private) int |
getPos()
|
SealedBox |
handleOptSealedDispatch(Brand brand)
How should my ref respond to an __optSealedDispatch request? |
void |
handleResolution(Object newTarget)
Enabled: My Ref no longer needs me, as it's become equivalent to newTarget. |
Ref |
handleSendAll(String verb,
Object[] args)
Override to also clear myFreshFlag |
void |
handleSendAllOnly(String verb,
Object[] args)
Override to also clear myFreshFlag |
boolean |
isFresh()
Have no E-level messages yet been sent over me? |
void |
reactToGC()
Enabled: One of my Refs was GCed, and I have no current Ref. |
boolean |
sameConnection(Object other)
Enabled: Are 'other' and the remote reference handled by 'this' part of the same comm system, and do they both connect to the same remote vat? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private boolean myFreshFlag
final CapTPConnection myConn
final ProxyResolver myResolver
Constructor Detail |
RemotePromiseHandler(CapTPConnection connection, int pos)
connection
- The CapTPConnection to communicate viapos
- The Imports or Questions map pos of the objectMethod Detail |
public void handleSendAllOnly(String verb, Object[] args)
handleSendAllOnly
in interface ProxyHandler
handleSendAllOnly
in class RemoteHandler
public Ref handleSendAll(String verb, Object[] args)
handleSendAll
in interface ProxyHandler
handleSendAll
in class RemoteHandler
public boolean isFresh()
public SealedBox handleOptSealedDispatch(Brand brand)
handleOptSealedDispatch
in interface ProxyHandler
public void handleResolution(Object newTarget)
ProxyHandler
handleResolution
in interface ProxyHandler
public void reactToGC()
ProxyHandler
reactToGC
in interface ProxyHandler
int getPos()
void countWireRef()
public boolean sameConnection(Object other)
ProxyHandler
sameConnection
in interface ProxyHandler
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |