public class JdkMongoSessionConverter extends AbstractMongoSessionConverter
AbstractMongoSessionConverter implementation using standard Java serialization.| Constructor and Description |
|---|
JdkMongoSessionConverter(org.springframework.core.convert.converter.Converter<java.lang.Object,byte[]> serializer,
org.springframework.core.convert.converter.Converter<byte[],java.lang.Object> deserializer,
java.time.Duration maxInactiveInterval) |
JdkMongoSessionConverter(java.time.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(java.lang.String indexName,
java.lang.Object indexValue)
Returns query to be executed to return sessions based on a particular index.
|
convert, ensureIndexes, extractPrincipal, getConvertibleTypes, setIndexResolverpublic JdkMongoSessionConverter(java.time.Duration maxInactiveInterval)
public JdkMongoSessionConverter(org.springframework.core.convert.converter.Converter<java.lang.Object,byte[]> serializer,
org.springframework.core.convert.converter.Converter<byte[],java.lang.Object> deserializer,
java.time.Duration maxInactiveInterval)
@Nullable
public org.springframework.data.mongodb.core.query.Query getQueryForIndex(java.lang.String indexName,
java.lang.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 AbstractMongoSessionConverter