@@ -1265,7 +1265,7 @@ <T> T get(InetSocketAddress sa, final String key, final Transcoder<T> tc) {
1265
1265
<T > GetFuture <T > asyncGet (InetSocketAddress sa , final String key , final Transcoder <T > tc ) {
1266
1266
1267
1267
final CountDownLatch latch = new CountDownLatch (1 );
1268
- final GetFuture <T > rv = new GetFuture <T >(latch , operationTimeout , key );
1268
+ final GetFuture <T > rv = new GetFuture <T >(latch , operationTimeout , key , executorService );
1269
1269
Operation op = opFact .get (key , new GetOperation .Callback () {
1270
1270
private Future <T > val = null ;
1271
1271
@@ -1964,7 +1964,7 @@ public <T> T getConfig(InetSocketAddress addr, ConfigurationType type, Transcode
1964
1964
public <T > GetConfigFuture <T > asyncGetConfig (InetSocketAddress addr , final ConfigurationType type , final Transcoder <T > tc ) {
1965
1965
1966
1966
final CountDownLatch latch = new CountDownLatch (1 );
1967
- final GetConfigFuture <T > rv = new GetConfigFuture <T >(latch , operationTimeout , type );
1967
+ final GetConfigFuture <T > rv = new GetConfigFuture <T >(latch , operationTimeout , type , executorService );
1968
1968
Operation op = opFact .getConfig (type , new GetConfigOperation .Callback () {
1969
1969
private Future <T > val = null ;
1970
1970
@@ -2021,7 +2021,7 @@ private <T> OperationFuture<Boolean> asyncSetConfig(InetSocketAddress addr,
2021
2021
CachedData co = tc .encode (value );
2022
2022
final CountDownLatch latch = new CountDownLatch (1 );
2023
2023
final OperationFuture <Boolean > rv =
2024
- new OperationFuture <Boolean >(configurationType .getValue (), latch , operationTimeout );
2024
+ new OperationFuture <Boolean >(configurationType .getValue (), latch , operationTimeout , executorService );
2025
2025
Operation op = opFact .setConfig (configurationType , co .getFlags (), co .getData (),
2026
2026
new OperationCallback () {
2027
2027
public void receivedStatus (OperationStatus val ) {
@@ -2049,7 +2049,7 @@ public void complete() {
2049
2049
public OperationFuture <Boolean > deleteConfig (InetSocketAddress addr , ConfigurationType configurationType ) {
2050
2050
final CountDownLatch latch = new CountDownLatch (1 );
2051
2051
final OperationFuture <Boolean > rv = new OperationFuture <Boolean >(configurationType .getValue (),
2052
- latch , operationTimeout );
2052
+ latch , operationTimeout , executorService );
2053
2053
DeleteConfigOperation op = opFact .deleteConfig (configurationType , new OperationCallback () {
2054
2054
public void receivedStatus (OperationStatus s ) {
2055
2055
rv .set (s .isSuccess (), s );
0 commit comments