public class MongoObjectStore extends Object implements org.mule.api.store.PartitionableExpirableObjectStore<Serializable>, org.mule.api.context.MuleContextAware
Constructor and Description |
---|
MongoObjectStore() |
@PostConstruct public void initialize() throws UnknownHostException, org.mule.api.store.ObjectStoreNotAvaliableException, org.mule.api.ConnectionException
UnknownHostException
org.mule.api.store.ObjectStoreNotAvaliableException
org.mule.api.ConnectionException
public boolean isPersistent()
isPersistent
in interface org.mule.api.store.ObjectStore<Serializable>
public void open() throws org.mule.api.store.ObjectStoreException
open
in interface org.mule.api.store.ListableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public void close() throws org.mule.api.store.ObjectStoreException
close
in interface org.mule.api.store.ListableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public List<Serializable> allKeys() throws org.mule.api.store.ObjectStoreException
allKeys
in interface org.mule.api.store.ListableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public void expire(int entryTtl, int maxEntries) throws org.mule.api.store.ObjectStoreException
expire
in interface org.mule.api.store.ExpirableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public boolean contains(Serializable key) throws org.mule.api.store.ObjectStoreException
contains
in interface org.mule.api.store.ObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public void store(Serializable key, Serializable value) throws org.mule.api.store.ObjectStoreException
store
in interface org.mule.api.store.ObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public Serializable retrieve(Serializable key) throws org.mule.api.store.ObjectStoreException
retrieve
in interface org.mule.api.store.ObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public Serializable remove(Serializable key) throws org.mule.api.store.ObjectStoreException
remove
in interface org.mule.api.store.ObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public void open(String partitionName) throws org.mule.api.store.ObjectStoreException
open
in interface org.mule.api.store.PartitionableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public void close(String partitionName) throws org.mule.api.store.ObjectStoreException
close
in interface org.mule.api.store.PartitionableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public boolean contains(Serializable key, String partitionName) throws org.mule.api.store.ObjectStoreException
contains
in interface org.mule.api.store.PartitionableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public List<Serializable> allKeys(String partitionName) throws org.mule.api.store.ObjectStoreException
allKeys
in interface org.mule.api.store.PartitionableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public List<String> allPartitions() throws org.mule.api.store.ObjectStoreException
allPartitions
in interface org.mule.api.store.PartitionableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public void store(Serializable key, Serializable value, String partitionName) throws org.mule.api.store.ObjectStoreException
store
in interface org.mule.api.store.PartitionableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public Serializable retrieve(Serializable key, String partitionName) throws org.mule.api.store.ObjectStoreException
retrieve
in interface org.mule.api.store.PartitionableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public Serializable remove(Serializable key, String partitionName) throws org.mule.api.store.ObjectStoreException
remove
in interface org.mule.api.store.PartitionableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public void disposePartition(String partitionName) throws org.mule.api.store.ObjectStoreException
disposePartition
in interface org.mule.api.store.PartitionableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public void clear(String s) throws org.mule.api.store.ObjectStoreException
clear
in interface org.mule.api.store.PartitionableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public void clear() throws org.mule.api.store.ObjectStoreException
clear
in interface org.mule.api.store.ObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public void expire(int entryTtl, int ignoredMaxEntries, String partitionName) throws org.mule.api.store.ObjectStoreException
expire
in interface org.mule.api.store.PartitionableExpirableObjectStore<Serializable>
org.mule.api.store.ObjectStoreException
public String getDatabase()
public void setDatabase(String database)
public String getHost()
public void setHost(String host)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public void setMuleContext(org.mule.api.MuleContext context)
setMuleContext
in interface org.mule.api.context.MuleContextAware
public String getPartitionName()
public void setPartitionName(String partitionName)
Copyright © 2010–2019. All rights reserved.