public interface IDocumentStore extends IDisposalNotification
Modifier and Type | Method and Description |
---|---|
CleanCloseable |
aggressivelyCache()
Setup the context for aggressive caching.
|
CleanCloseable |
aggressivelyCacheFor(long cacheDurationInMilis)
Setup the context for aggressive caching.
|
BulkInsertOperation |
bulkInsert()
Performs bulk insert
|
BulkInsertOperation |
bulkInsert(String database)
Performs bulk insert
|
BulkInsertOperation |
bulkInsert(String database,
BulkInsertOptions options)
Performs bulk insert
|
IDatabaseChanges |
changes()
Subscribe to change notifications from the server
|
IDatabaseChanges |
changes(String database)
Subscribe to change notifications from the server
|
CleanCloseable |
disableAggressiveCaching()
Setup the context for no aggressive caching
This is mainly useful for internal use inside RavenDB, when we are executing
queries that has been marked with WaitForNonStaleResults, we temporarily disable
aggressive caching.
|
void |
executeIndex(AbstractIndexCreationTask indexCreationTask)
Executes the index creation.
|
void |
executeIndexes(List<AbstractIndexCreationTask> indexCreationTasks) |
void |
executeTransformer(AbstractTransformerCreationTask transformerCreationTask)
executes the transformer creation
|
DocumentConvention |
getConventions()
Gets the conventions.
|
IDatabaseCommands |
getDatabaseCommands()
Gets the database commands.
|
String |
getIdentifier()
Gets the identifier
|
HttpJsonRequestFactory |
getJsonRequestFactory()
Get the
HttpJsonRequestFactory for this store |
Etag |
getLastWrittenEtag()
Gets the etag of the last document written by any session belonging to this
document store
|
DocumentSessionListeners |
getListeners() |
Map<String,String> |
getSharedOperationsHeaders()
Gets the shared operations headers.
|
String |
getUrl()
Gets the URL.
|
boolean |
hasJsonRequestFactory()
Whatever this instance has json request factory available
|
IDocumentStore |
initialize()
Initializes this instance.
|
void |
initializeProfiling() |
IDocumentSession |
openSession()
Opens the session.
|
IDocumentSession |
openSession(OpenSessionOptions sessionOptions)
Opens the session with the specified options.
|
IDocumentSession |
openSession(String database)
Opens the session for a particular database
|
void |
setIdentifier(String identifier)
Sets the identifier
|
void |
setListeners(DocumentSessionListeners listeners) |
CleanCloseable |
setRequestsTimeoutFor(long timeout)
Setup the WebRequest timeout for the session
|
void |
sideBySideExecuteIndex(AbstractIndexCreationTask indexCreationTask)
Executes the index creation in side-by-side mode.
|
void |
sideBySideExecuteIndex(AbstractIndexCreationTask indexCreationTask,
Etag minimumEtagBeforeReplace,
Date replaceTimeUtc)
Executes the index creation in side-by-side mode.
|
void |
sideBySideExecuteIndexes(List<AbstractIndexCreationTask> indexCreationTasks) |
void |
sideBySideExecuteIndexes(List<AbstractIndexCreationTask> indexCreationTasks,
Etag minimumEtagBeforeReplace,
Date replaceTimeUtc) |
IReliableSubscriptions |
subscriptions() |
addAfterDisposeEventHandler, getWasDisposed, removeAfterDisposeEventHandler
close
IDatabaseChanges changes()
IDatabaseChanges changes(String database)
database
- CleanCloseable aggressivelyCacheFor(long cacheDurationInMilis)
cacheDurationInMilis
- CleanCloseable aggressivelyCache()
CleanCloseable disableAggressiveCaching()
CleanCloseable setRequestsTimeoutFor(long timeout)
timeout
- Specify the timeout durationMap<String,String> getSharedOperationsHeaders()
HttpJsonRequestFactory getJsonRequestFactory()
HttpJsonRequestFactory
for this storeboolean hasJsonRequestFactory()
void setIdentifier(String identifier)
identifier
- String getIdentifier()
IDocumentStore initialize()
IDocumentSession openSession()
IDocumentSession openSession(String database)
database
- IDocumentSession openSession(OpenSessionOptions sessionOptions)
sessionOptions
- IDatabaseCommands getDatabaseCommands()
void sideBySideExecuteIndex(AbstractIndexCreationTask indexCreationTask)
indexCreationTask
- void sideBySideExecuteIndex(AbstractIndexCreationTask indexCreationTask, Etag minimumEtagBeforeReplace, Date replaceTimeUtc)
indexCreationTask
- minimumEtagBeforeReplace
- replaceTimeUtc
- void sideBySideExecuteIndexes(List<AbstractIndexCreationTask> indexCreationTasks)
void sideBySideExecuteIndexes(List<AbstractIndexCreationTask> indexCreationTasks, Etag minimumEtagBeforeReplace, Date replaceTimeUtc)
void executeIndex(AbstractIndexCreationTask indexCreationTask)
indexCreationTask
- void executeIndexes(List<AbstractIndexCreationTask> indexCreationTasks)
void executeTransformer(AbstractTransformerCreationTask transformerCreationTask)
transformerCreationTask
- DocumentConvention getConventions()
String getUrl()
Etag getLastWrittenEtag()
BulkInsertOperation bulkInsert()
BulkInsertOperation bulkInsert(String database)
database
- BulkInsertOperation bulkInsert(String database, BulkInsertOptions options)
database
- options
- DocumentSessionListeners getListeners()
IReliableSubscriptions subscriptions()
void initializeProfiling()
void setListeners(DocumentSessionListeners listeners)
Copyright © 2016. All Rights Reserved.