org.apache.servicemix.store.memory
Class MemoryStoreFactory

java.lang.Object
  extended by org.apache.servicemix.store.base.BaseStoreFactory
      extended by org.apache.servicemix.store.memory.MemoryStoreFactory
All Implemented Interfaces:
StoreFactory

public class MemoryStoreFactory
extends BaseStoreFactory

StoreFactory for creating memory-based Store implementations If a timeout has been specified, a TimeoutMemoryStore will be created, otherwise the factory will build a plain MemoryStore


Field Summary
 
Fields inherited from class org.apache.servicemix.store.base.BaseStoreFactory
storeListeners
 
Constructor Summary
MemoryStoreFactory()
           
 
Method Summary
 void close(Store store)
          Closes a Store with the specified name,
 Store open(java.lang.String name)
          Opens a Store with the specified name.
 void setTimeout(long timeout)
           
 
Methods inherited from class org.apache.servicemix.store.base.BaseStoreFactory
getStoreListeners, setStoreListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryStoreFactory

public MemoryStoreFactory()
Method Detail

open

public Store open(java.lang.String name)
           throws java.io.IOException
Description copied from interface: StoreFactory
Opens a Store with the specified name.

Returns:
Throws:
java.io.IOException

close

public void close(Store store)
           throws java.io.IOException
Description copied from interface: StoreFactory
Closes a Store with the specified name,

Throws:
java.io.IOException

setTimeout

public void setTimeout(long timeout)


Copyright © 2005-2012 FuseSource. All Rights Reserved.