}
public RepositoryConnection getConnection()
throws StoreException
{
final ConnectionClient connection = client.connections().post();
final HTTPRepositoryConnection con = new HTTPRepositoryConnection(this, connection);
executor.scheduleAtFixedRate(new Runnable() {
public void run() {
try {
if (con.isOpen()) {
connection.ping();
}
else {
throw new RuntimeException("connection already closed");
}
}