import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
+import com.google.common.util.concurrent.MoreExecutors;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
public void onFailure(final Throwable t) {
LOG.error("Failed to cleanup internal state for session {}", TopologyNodeState.this.nodeId, t);
}
- });
+ }, MoreExecutors.directExecutor());
}
this.lastReleased = System.nanoTime();
public void onFailure(final Throwable t) {
LOG.error("Failed to get topology node {}", TopologyNodeState.this.nodeId, t);
}
- });
+ }, MoreExecutors.directExecutor());
} else {
putTopologyNode();
}