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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJRTConfigRequester(ConnectionPool connectionPool, TimingValues timingValues) Only for testing -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static JRTConfigRequestercreate(ConfigSourceSet sourceSet, TimingValues timingValues) voidhandleRequestDone(com.yahoo.jrt.Request req) <T extends com.yahoo.config.ConfigInstance>
voidrequest(JRTConfigSubscription<T> sub) Requests the config for theConfigInstanceon the givenConfigSubscription
-
Field Details
-
defaultSourceSet
-
-
Constructor Details
-
JRTConfigRequester
Only for testing
-
-
Method Details
-
create
-
request
Requests the config for theConfigInstanceon the givenConfigSubscription- Parameters:
sub- a subscription
-
handleRequestDone
public void handleRequestDone(com.yahoo.jrt.Request req) - Specified by:
handleRequestDonein interfacecom.yahoo.jrt.RequestWaiter
-
close
public void close() -
getConnectionPool
-