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, setIndexResolver
public JdkMongoSessionConverter(Duration maxInactiveInterval)
@Nullable public org.springframework.data.mongodb.core.query.Query getQueryForIndex(String indexName, Object indexValue)
AbstractMongoSessionConverter
getQueryForIndex
in class AbstractMongoSessionConverter
indexName
- name of the indexindexValue
- value to query againstprotected com.mongodb.DBObject convert(MongoSession session)
convert
in class AbstractMongoSessionConverter
protected MongoSession convert(org.bson.Document sessionWrapper)
convert
in class AbstractMongoSessionConverter
Copyright © 2014-2019–2019 Pivotal, Inc.. All rights reserved.