private Connection.ResponseCallback prepareAndRetry(final String toPrepare) {
return new Connection.ResponseCallback() {
public Message.Request request() {
return new PrepareMessage(toPrepare);
}
public void onSet(Connection connection, Message.Response response) {
// TODO should we check the response ?
logger.trace("Scheduling retry now that query is prepared");