Skip to content

Commit

Permalink
maintenance: updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
msemys committed Jul 15, 2017
1 parent c4bd36e commit d8717ef
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@ This is [EventStore](https://geteventstore.com/) driver for Java, that uses [Net
## Requirements

* Java 8
* EventStore Server 3.2.0 - 3.9.4
* EventStore 4.0.0 - 4.0.1 (esjc v2)
* EventStore 3.2.0 - 3.9.4 (esjc v1)


## Maven Dependency

* EventStore v4 compatible
```xml
<dependency>
<groupId>com.github.msemys</groupId>
<artifactId>esjc</artifactId>
<version>2.0.0</version>
</dependency>
```

* EventStore v3 compatible
```xml
<dependency>
<groupId>com.github.msemys</groupId>
Expand Down Expand Up @@ -141,7 +152,7 @@ eventstore.appendToStream("foo", ExpectedVersion.ANY, asList(
```

```java
eventstore.appendToStream("foo", ExpectedVersion.of(2),
eventstore.appendToStream("foo", 2,
EventData.newBuilder()
.type("quux")
.data(new byte[0])
Expand Down Expand Up @@ -395,7 +406,7 @@ volatileSubscription.get().close();
#### Subscribes to stream from event number (catch-up subscription)

```java
CatchUpSubscription catchupSubscription = eventstore.subscribeToStreamFrom("foo", 3,
CatchUpSubscription catchupSubscription = eventstore.subscribeToStreamFrom("foo", 3L,
new CatchUpSubscriptionListener() {
@Override
public void onLiveProcessingStarted(CatchUpSubscription subscription) {
Expand All @@ -417,7 +428,7 @@ catchupSubscription.close();
```

```java
CatchUpSubscription catchupSubscription = eventstore.subscribeToStreamFrom("foo", 3, (s, e) ->
CatchUpSubscription catchupSubscription = eventstore.subscribeToStreamFrom("foo", 3L, (s, e) ->
System.out.println(e.originalEvent().eventType)
);

Expand Down

0 comments on commit d8717ef

Please sign in to comment.