Skip to content

Commit 007e441

Browse files
committed
Merge branch 'v2' into eb/v2-initial
2 parents 0d04cd5 + 3631f8d commit 007e441

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Contributing to this library
22
============================
33

4-
The source code for this library is [here](https://github.com/launchdarkly/java-dynamodb-store). We encourage pull-requests and other contributions from the community. Since this library is meant to be used in conjunction with the LaunchDarkly Java SDK, you may want to look at the [Java SDK source code](https://github.com/launchdarkly/java-client) and our [SDK contributor's guide](http://docs.launchdarkly.com/docs/sdk-contributors-guide).
4+
The source code for this library is [here](https://github.com/launchdarkly/java-client-dynamodb). We encourage pull-requests and other contributions from the community. Since this library is meant to be used in conjunction with the LaunchDarkly Java SDK, you may want to look at the [Java SDK source code](https://github.com/launchdarkly/java-client) and our [SDK contributor's guide](http://docs.launchdarkly.com/docs/sdk-contributors-guide).

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
LaunchDarkly SDK for Java - DynamoDB integration
22
================================================
33

4-
[![Circle CI](https://circleci.com/gh/launchdarkly/java-dynamodb-store.svg?style=shield)](https://circleci.com/gh/launchdarkly/java-dynamodb-store)
4+
[![Circle CI](https://circleci.com/gh/launchdarkly/java-client-dynamodb.svg?style=shield)](https://circleci.com/gh/launchdarkly/java-client-dynamodb)
55
[![Javadocs](http://javadoc.io/badge/com.launchdarkly/launchdarkly-client.svg)](http://javadoc.io/doc/com.launchdarkly/launchdarkly-client-dynamodb-store)
6-
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Flaunchdarkly%2Fjava-dynamodb-store.svg?type=shield)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Flaunchdarkly%2Fjava-dynamodb-store?ref=badge_shield)
6+
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Flaunchdarkly%2Fjava-client-dynamodb.svg?type=shield)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Flaunchdarkly%2Fjava-client-dynamodb?ref=badge_shield)
77

88
This library provides a DynamoDB-backed persistence mechanism (feature store) for the [LaunchDarkly Java SDK](https://github.com/launchdarkly/java-client), replacing the default in-memory feature store.
99

@@ -16,28 +16,30 @@ Quick setup
1616

1717
This assumes that you have already installed the LaunchDarkly Java SDK.
1818

19-
0. Add this library to your project:
19+
1. In DynamoDB, create a table which has the following schema: a partition key called "namespace" and a sort key called "key", both with a string type. The LaunchDarkly library does not create the table automatically, because it has no way of knowing what additional properties (such as permissions and throughput) you would want it to have.
20+
21+
2. Add this library to your project:
2022

2123
<dependency>
2224
<groupId>com.launchdarkly</groupId>
2325
<artifactId>launchdarkly-client-dynamodb-store</artifactId>
2426
<version>2.0.0</version>
2527
</dependency>
2628

27-
1. If you do not already have the AWS SDK in your project, add the DynamoDB part of it. (This needs to be added separately, rather than being included in the LaunchDarkly jar, because AWS classes are exposed in the public interface.)
29+
3. If you do not already have the AWS SDK in your project, add the DynamoDB part of it. (This needs to be added separately, rather than being included in the LaunchDarkly jar, because AWS classes are exposed in the public interface.)
2830

2931
<dependency>
3032
<groupId>software.amazon.awssdk</groupId>
3133
<artifactId>dynamodb</artifactId>
3234
<version>2.1.4</version>
3335
</dependency>
3436

35-
2. Import the LaunchDarkly package and the package for this library:
37+
4. Import the LaunchDarkly package and the package for this library:
3638

3739
import com.launchdarkly.client.*;
3840
import com.launchdarkly.client.dynamodb.*;
3941

40-
3. When configuring your SDK client, add the DynamoDB feature store:
42+
5. When configuring your SDK client, add the DynamoDB feature store:
4143

4244
DynamoDbFeatureStoreBuilder store = DatabaseComponents.dynamoDbFeatureStore("my-table-name")
4345
.caching(FeatureStoreCaching.enabled().ttlSeconds(30));
@@ -48,8 +50,6 @@ This assumes that you have already installed the LaunchDarkly Java SDK.
4850
4951
LDClient client = new LDClient("YOUR SDK KEY", config);
5052

51-
The specified table must already exist in DynamoDB. It must have a partition key called "namespace" and a sort key called "key".
52-
5353
By default, the DynamoDB client will try to get your AWS credentials and region name from environment variables and/or local configuration files, as described in the AWS SDK documentation. There are methods in `DynamoDBFeatureStoreBuilder` for changing the configuration options. Alternatively, if you already have a fully configured DynamoDB client object, you can tell LaunchDarkly to use that:
5454

5555
DynamoDbFeatureStoreBuilder store = DatabaseComponents.dynamoDbFeatureStore("my-table-name")

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ nexusStaging {
134134
def pomConfig = {
135135
name 'LaunchDarkly Java SDK DynamoDB integration'
136136
packaging 'jar'
137-
url 'https://github.com/launchdarkly/java-dynamodb-store'
137+
url 'https://github.com/launchdarkly/java-client-dynamodb'
138138

139139
licenses {
140140
license {
@@ -152,9 +152,9 @@ def pomConfig = {
152152
}
153153

154154
scm {
155-
connection 'scm:git:git://github.com/launchdarkly/java-dynamodb-store.git'
156-
developerConnection 'scm:git:ssh:git@github.com:launchdarkly/java-dynamodb-store.git'
157-
url 'https://github.com/launchdarkly/java-dynamodb-store'
155+
connection 'scm:git:git://github.com/launchdarkly/java-client-dynamodb.git'
156+
developerConnection 'scm:git:ssh:git@github.com:launchdarkly/java-client-dynamodb.git'
157+
url 'https://github.com/launchdarkly/java-client-dynamodb'
158158
}
159159
}
160160

0 commit comments

Comments
 (0)