com.twistedmatrix.spread.pb
Class RemoteReference

java.lang.Object
  |
  +--com.twistedmatrix.spread.pb.RemoteObject
        |
        +--com.twistedmatrix.spread.pb.RemoteReference

public class RemoteReference
extends RemoteObject

A reference to a remote object.


Constructor Summary
protected RemoteReference(ByteString perspective, Broker broker, java.lang.Object luid, boolean doRefCount)
          Create a new RemoteReference.
 
Method Summary
 void callRemoteAsync(java.lang.String methodName, java.lang.Object[] args, PrimitiveMap kwargs, Callback callback)
          Send a command to the remote object, getting a response asynchronously.
 boolean equals(java.lang.Object other)
          Compare to another object.
protected  void finalize()
          Tell remote server we are releasing the reference.
 Broker getBroker()
          Get the broker via which the reference is connected.
 java.lang.Object[] getInterfaces()
          Get the optional list of interfaces the remote object implements.
 java.lang.Object getLuid()
          Get the luid.
 void setInterfaces(java.lang.Object[] l)
          Set the optional list of interfaces the remote object implements.
 
Methods inherited from class com.twistedmatrix.spread.pb.RemoteObject
callRemote, callRemote, callRemote, callRemoteAsync
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteReference

protected RemoteReference(ByteString perspective,
                          Broker broker,
                          java.lang.Object luid,
                          boolean doRefCount)
Create a new RemoteReference.
Method Detail

getInterfaces

public java.lang.Object[] getInterfaces()
Get the optional list of interfaces the remote object implements.

setInterfaces

public void setInterfaces(java.lang.Object[] l)
Set the optional list of interfaces the remote object implements.

getBroker

public Broker getBroker()
Get the broker via which the reference is connected.

getLuid

public java.lang.Object getLuid()
Get the luid.

callRemoteAsync

public void callRemoteAsync(java.lang.String methodName,
                            java.lang.Object[] args,
                            PrimitiveMap kwargs,
                            Callback callback)
                     throws java.io.IOException
Send a command to the remote object, getting a response asynchronously.
Overrides:
callRemoteAsync in class RemoteObject
Parameters:
methodName - the method to call.
args - a list of arguments to the method.
kwargs - a dictionary of keyword arguments.
callback - callback for result (if callback is null then no answer will be sent.)

equals

public boolean equals(java.lang.Object other)
Compare to another object.
Overrides:
equals in class java.lang.Object

finalize

protected void finalize()
Tell remote server we are releasing the reference.
Overrides:
finalize in class java.lang.Object