Class JRTConfigRequester

java.lang.Object
com.yahoo.config.subscription.impl.JRTConfigRequester
All Implemented Interfaces:
com.yahoo.jrt.RequestWaiter

public class JRTConfigRequester extends Object implements com.yahoo.jrt.RequestWaiter
Requests configs using RPC, and acts as the callback target. It uses the JRTConfigSubscription and JRTClientConfigRequest as context, and puts the request objects on a queue on the subscription, for handling by the user thread.
Author:
Vegard Havdal
  • Field Details

  • Constructor Details

  • Method Details

    • create

      public static JRTConfigRequester create(ConfigSourceSet sourceSet, TimingValues timingValues)
    • request

      public <T extends com.yahoo.config.ConfigInstance> void request(JRTConfigSubscription<T> sub)
      Requests the config for the ConfigInstance on the given ConfigSubscription
      Parameters:
      sub - a subscription
    • handleRequestDone

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

      public void close()
    • getConnectionPool

      public ConnectionPool getConnectionPool()