Class RPCTarget

java.lang.Object
com.yahoo.messagebus.network.rpc.RPCTarget
All Implemented Interfaces:
com.yahoo.jrt.RequestWaiter

public class RPCTarget extends Object implements com.yahoo.jrt.RequestWaiter

Implements a target object that encapsulates the JRT connection target. Instances of this class are returned by RPCService, and cached by RPCTargetPool.

Author:
Simon Thoresen Hult
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Declares a version handler used when resolving the version of a target.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RPCTarget(com.yahoo.jrt.Spec spec, com.yahoo.jrt.Supervisor orb)
    Constructs a new instance of this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleRequestDone(com.yahoo.jrt.Request req)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RPCTarget

      public RPCTarget(com.yahoo.jrt.Spec spec, com.yahoo.jrt.Supervisor orb)

      Constructs a new instance of this class.

      Parameters:
      spec - The connection spec of this target.
      orb - The jrt supervisor to use when connecting to target.
  • Method Details

    • handleRequestDone

      public void handleRequestDone(com.yahoo.jrt.Request req)
      Specified by:
      handleRequestDone in interface com.yahoo.jrt.RequestWaiter