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