public class JdkMongoSessionConverter extends AbstractMongoSessionConverter
AbstractMongoSessionConverter implementation using standard Java serialization.GenericConverter.ConvertiblePair| Constructor and Description |
|---|
JdkMongoSessionConverter(Converter<Object,byte[]> serializer,
Converter<byte[],Object> deserializer,
Duration maxInactiveInterval) |
JdkMongoSessionConverter(Duration maxInactiveInterval) |
| Modifier and Type | Method and Description |
|---|---|
protected MongoSession |
convert(org.bson.Document sessionWrapper) |
protected com.mongodb.DBObject |
convert(MongoSession session) |
org.springframework.data.mongodb.core.query.Query |
getQueryForIndex(String indexName,
Object indexValue)
Returns query to be executed to return sessions based on a particular index.
|
convert, ensureIndexes, extractPrincipal, getConvertibleTypes, setIndexResolverpublic JdkMongoSessionConverter(Duration maxInactiveInterval)
@Nullable public org.springframework.data.mongodb.core.query.Query getQueryForIndex(String indexName, Object indexValue)
AbstractMongoSessionConvertergetQueryForIndex in class AbstractMongoSessionConverterindexName - name of the indexindexValue - value to query againstprotected com.mongodb.DBObject convert(MongoSession session)
convert in class AbstractMongoSessionConverterprotected MongoSession convert(org.bson.Document sessionWrapper)
convert in class AbstractMongoSessionConverterCopyright © 2014-2019–2020 Pivotal, Inc.. All rights reserved.