|
|||||||||||
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.FarHandler
A resolved reference that's still remote is necessarily a reference to a PassByProxy object.
Field Summary | |
(package private) CapTPConnection |
myConn
Connection to the vat I point into |
(package private) ProxyResolver |
myResolver
The Resolver of our Proxy, which also revives the Proxy on demand. |
private BigInteger |
mySwissHash
|
Constructor Summary | |
(package private) |
FarHandler(CapTPConnection conn,
int pos,
BigInteger swissHash)
Construct a new FarHandler. |
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)
Enabled: My Ref is asking me to deliver the message to the other side, and return a promise for the result. |
void |
handleSendAllOnly(String verb,
Object[] args)
Enabled: My Ref is asking me to deliver the message to the other side and ignore the result. |
boolean |
isFresh()
Always resolved, so always fresh |
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 final BigInteger mySwissHash
final CapTPConnection myConn
final ProxyResolver myResolver
Constructor Detail |
FarHandler(CapTPConnection conn, int pos, BigInteger swissHash)
conn
- The CapTPConnection to communicate viapos
- The Imports or Questions map pos of the objectswissHash
- The identity (within the connection's remote vat) of
the object this FarRef designates.Method Detail |
public boolean isFresh()
public SealedBox handleOptSealedDispatch(Brand brand)
handleOptSealedDispatch
in interface ProxyHandler
public void handleSendAllOnly(String verb, Object[] args)
ProxyHandler
If the underlying transport mechanism is shut down or otherwise not accepting messages, then it should throw a problem explaining why this message wasn't queued.
handleSendAllOnly
in interface ProxyHandler
public Ref handleSendAll(String verb, Object[] args)
ProxyHandler
If the underlying transport mechanism is shut down or otherwise not accepting messages, then it should either throw a problem explaining why this message wasn't queued, or return a reference that's immediately broken by this problem.
handleSendAll
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 |