Class JRTConfigRequester
java.lang.Object
com.yahoo.config.subscription.impl.JRTConfigRequester
- All Implemented Interfaces:
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 Summary
-
Constructor Summary
ConstructorDescriptionJRTConfigRequester
(ConnectionPool connectionPool, TimingValues timingValues) Only for testing -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static JRTConfigRequester
create
(ConfigSourceSet sourceSet, TimingValues timingValues) void
handleRequestDone
(com.yahoo.jrt.Request req) <T extends com.yahoo.config.ConfigInstance>
voidrequest
(JRTConfigSubscription<T> sub) Requests the config for theConfigInstance
on the givenConfigSubscription
-
Field Details
-
defaultSourceSet
-
-
Constructor Details
-
JRTConfigRequester
Only for testing
-
-
Method Details
-
create
-
request
Requests the config for theConfigInstance
on the givenConfigSubscription
- Parameters:
sub
- a subscription
-
handleRequestDone
public void handleRequestDone(com.yahoo.jrt.Request req) - Specified by:
handleRequestDone
in interfacecom.yahoo.jrt.RequestWaiter
-
close
public void close() -
getConnectionPool
-