Class JRTConfigRequester

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

    public class JRTConfigRequester
    extends java.lang.Object
    implements com.yahoo.jrt.RequestWaiter
    This class fetches config payload using JRT, 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 Detail

    • Constructor Detail

    • Method Detail

      • 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()