src/main/java/com/eventfully/foundationdb/eventstore/SetStreamMetadataResult.java
package com.eventfully.foundationdb.eventstore;
import com.google.common.base.MoreObjects;
/**
* Represents the result of setting a stream's metadata
*
*/
public class SetStreamMetadataResult {
/**
* The current version of the stream at the time the metadata was written.
*/
public final long currentVersion;
/**
* Initializes a new instance of the {@link SetStreamMetadataResult}.
* @param currentVersion
*/
public SetStreamMetadataResult(long currentVersion) {
this.currentVersion = currentVersion;
}
public long getCurrentVersion() {
return currentVersion;
}
@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("currentVersion", getCurrentVersion())
.toString();
}
}