code: public Keyspace build() {
          final AstyanaxContext<Keyspace> context = new AstyanaxContext.Builder()
              .forCluster(clusterName)
              .forKeyspace(keyspaceName)
              .withAstyanaxConfiguration(new AstyanaxConfigurationImpl()
                  .setDiscoveryType(RING_DESCRIBE)
              )
              .withConnectionPoolConfiguration(new ConnectionPoolConfigurationImpl("ConnectionPool")
                  .setPort(thriftPort)
                  .setSeeds(hosts)
              )
              .withConnectionPoolMonitor(new CountingConnectionPoolMonitor())
              .buildKeyspace(ThriftFamilyFactory.getInstance());
  
          context.start();
  
          Runtime.getRuntime().addShutdownHook(new Thread() {
              @Override
              public synchronized void run() {
                  context.shutdown();
              }
          });
  
          return context.getClient();
      }
docs: Builds a {@link Keyspace} from current configuration.