org.springframework.data.document.mongodb
Class CollectionOptions
java.lang.Object
org.springframework.data.document.mongodb.CollectionOptions
public class CollectionOptions
- extends java.lang.Object
Provides a simple wrapper to encapsulate the variety of settings you can use when creating a collection.
- Author:
- Thomas Risberg
Constructor Summary |
CollectionOptions(java.lang.Integer size,
java.lang.Integer maxDocuments,
java.lang.Boolean capped)
Constructs a new CollectionOptions instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionOptions
public CollectionOptions(java.lang.Integer size,
java.lang.Integer maxDocuments,
java.lang.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 java.lang.Integer getMaxDocuments()
setMaxDocuments
public void setMaxDocuments(java.lang.Integer maxDocuments)
getSize
public java.lang.Integer getSize()
setSize
public void setSize(java.lang.Integer size)
getCapped
public java.lang.Boolean getCapped()
setCapped
public void setCapped(java.lang.Boolean capped)
Copyright © 2011. All Rights Reserved.