-
Notifications
You must be signed in to change notification settings - Fork 354
Starting with AstyanaxContext
opuneet edited this page Oct 9, 2013
·
3 revisions
AstyanaxContext<Keyspace> ctx =
new AstyanaxContext.Builder()
.forKeyspace(YOUR KEYSPACE NAME)
.withConnectionPoolConfiguration(
new ConnectionPoolConfigurationImpl("myCPConfig")
.setSeeds(YOUR SEED HOST)
.setPort(YOUR CONN PORT))
.withAstyanaxConfiguration(
new AstyanaxConfigurationImpl()
.setConnectionPoolType(ConnectionPoolType.TOKEN_AWARE)
.setDiscoveryType(NodeDiscoveryType.RING_DESCRIBE))
.buildKeyspace(ThriftFamilyFactory.getInstance());
Keyspace ks = ctx.getClient();
ctx.start();
A Netflix Original Production
Tech Blog | Twitter @NetflixOSS | Jobs
- Getting-Started
- Configuration
- Features
- Monitoring
- Thread Safety
- Timeouts
- Recipes
- Examples
- Javadoc
- Utilities
- Cassandra-Compatibility
- FAQ
- End-to-End Examples
- Astyanax Integration with Java Driver