org.apache.servicemix.store.memory
Class MemoryStoreFactory

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

public class MemoryStoreFactory
extends java.lang.Object
implements StoreFactory

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


Constructor Summary
MemoryStoreFactory()
           
 
Method Summary
 void close(Store store)
           
 Store open(java.lang.String name)
           
 void setTimeout(long timeout)
           
 
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
Specified by:
open in interface StoreFactory
Throws:
java.io.IOException

close

public void close(Store store)
           throws java.io.IOException
Specified by:
close in interface StoreFactory
Throws:
java.io.IOException

setTimeout

public void setTimeout(long timeout)


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.