org.springframework.data.mongodb.core
Class CollectionOptions
java.lang.Object
org.springframework.data.mongodb.core.CollectionOptions
public class CollectionOptions
- extends Object
Provides a simple wrapper to encapsulate the variety of settings you can use when creating a collection.
- Author:
- Thomas Risberg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionOptions
public CollectionOptions(Integer size,
Integer maxDocuments,
Boolean capped)
- Constructs a new
CollectionOptions
instance.
- Parameters:
size
- the collection size in bytes, this data space is preallocatedmaxDocuments
- the maximum number of documents in the collection.capped
- true to created a "capped" collection (fixed size with auto-FIFO behavior based on insertion order),
false otherwise.
getMaxDocuments
public Integer getMaxDocuments()
setMaxDocuments
public void setMaxDocuments(Integer maxDocuments)
getSize
public Integer getSize()
setSize
public void setSize(Integer size)
getCapped
public Boolean getCapped()
setCapped
public void setCapped(Boolean capped)
Copyright © 2012. All Rights Reserved.