Make reactive session settings configurable through setters

Resolves #11
This commit is contained in:
Greg Turnquist
2017-09-25 09:20:57 -05:00
parent 2afebe8e78
commit ed655da828
3 changed files with 52 additions and 0 deletions

View File

@@ -145,10 +145,18 @@ public class ReactiveMongoOperationsSessionRepository implements ReactorSessionR
this.maxInactiveIntervalInSeconds = maxInactiveIntervalInSeconds;
}
public Integer getMaxInactiveIntervalInSeconds() {
return maxInactiveIntervalInSeconds;
}
public void setCollectionName(String collectionName) {
this.collectionName = collectionName;
}
public String getCollectionName() {
return collectionName;
}
public MongoOperations getBlockingMongoOperations() {
return this.blockingMongoOperations;
}

View File

@@ -93,4 +93,19 @@ public class ReactiveMongoWebSessionConfiguration implements EmbeddedValueResolv
public void setEmbeddedValueResolver(StringValueResolver embeddedValueResolver) {
this.embeddedValueResolver = embeddedValueResolver;
}
public Integer getMaxInactiveIntervalInSeconds() {
return maxInactiveIntervalInSeconds;
}
public void setMaxInactiveIntervalInSeconds(Integer maxInactiveIntervalInSeconds) {
this.maxInactiveIntervalInSeconds = maxInactiveIntervalInSeconds;
}
public String getCollectionName() {
return collectionName;
}
public void setCollectionName(String collectionName) {
this.collectionName = collectionName;
}
}