Class SimonRemoteRef

java.lang.Object
host.anzo.simon.SimonRemoteRef
All Implemented Interfaces:
Serializable

public class SimonRemoteRef extends Object implements Serializable
If an remote-proxy needs to be transferred again, only a reference is transferred. The receiving side detects this, and gives the matching and already known object
See Also:
  • Constructor Details

    • SimonRemoteRef

      protected SimonRemoteRef(org.apache.mina.core.session.IoSession session, Object remoteObject)
      Creates a new SimonRemoteInstance transport object
      Parameters:
      session - the IoSession to which the remote object is related to
      remoteObject - the remote object for which we generate this transport object for
  • Method Details

    • getId

      protected String getId()
      Returns an unique identifier for this remotely referenced object. This is necessary to differ from two remote objects with the same implementation
      Returns:
      a unique ID for the remote object
    • toString

      public String toString()
      Overrides:
      toString in class Object