public class MongoArchiveOperationHandler extends Object implements ArchiveOperationHandler
| Constructor and Description |
|---|
MongoArchiveOperationHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
archive(Object... objects)
Writes the specified objects to the external storage
|
void |
destroy() |
com.mongodb.MongoClient |
getConfig() |
GigaSpace |
getGigaSpace() |
void |
setConfig(com.mongodb.MongoClient client) |
void |
setDb(String db) |
void |
setGigaSpace(GigaSpace gigaSpace) |
boolean |
supportsBatchArchiving()
What happens when the archive operation receives a batch of objects to persist and throws an
exception in the middle of the archiving? The external archive container (assuming the
exception is not swollen with an exception handler) will retry archiving all objects.
|
public void setGigaSpace(GigaSpace gigaSpace)
public void archive(Object... objects)
ArchiveOperationHandlerarchive in interface ArchiveOperationHandlerobjects - - one or more objects to write. If not ArchiveOperationHandler.supportsBatchArchiving() then
only one object is passed at a time.SpaceMongoException - - Problem encountered while archiving to mongodbArchiveOperationHandler.archive(Object...)public boolean supportsBatchArchiving()
ArchiveOperationHandlersupportsBatchArchiving in interface ArchiveOperationHandlerArchiveOperationHandler.supportsBatchArchiving()@PostConstruct public void afterPropertiesSet()
public GigaSpace getGigaSpace()
public void setDb(String db)
db - Mongo database name.MongoClientConnectorConfigurer.db(String)public void setConfig(com.mongodb.MongoClient client)
client - Mongo database client.MongoClientConnectorConfigurer.client(MongoClient)@PreDestroy public void destroy()
public com.mongodb.MongoClient getConfig()
Copyright © GigaSpaces.