Class RPCTarget

  • All Implemented Interfaces:
    com.yahoo.jrt.RequestWaiter

    public class RPCTarget
    extends java.lang.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  RPCTarget.VersionHandler
      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

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • 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 Detail

      • handleRequestDone

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