org.ehcache.transactions.xa.journal
Class DefaultJournalProvider

java.lang.Object
  extended by org.ehcache.transactions.xa.journal.DefaultJournalProvider
All Implemented Interfaces:
Service, JournalProvider

public class DefaultJournalProvider
extends java.lang.Object
implements JournalProvider


Constructor Summary
DefaultJournalProvider()
           
 
Method Summary
<K> Journal<K>
getJournal(LocalPersistenceService.PersistenceSpaceIdentifier persistentSpaceId, Serializer<K> keySerializer)
          Get the Journal implementation.
 void start(ServiceProvider serviceProvider)
          Start this service using the provided configuration and ServiceProvider.
 void stop()
          Stops this service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultJournalProvider

public DefaultJournalProvider()
Method Detail

start

public void start(ServiceProvider serviceProvider)
Description copied from interface: Service
Start this service using the provided configuration and ServiceProvider.

The goal of the service provider is to allow a service to use other services.

Specified by:
start in interface Service
Parameters:
serviceProvider - the service provider.

stop

public void stop()
Description copied from interface: Service
Stops this service.

Specified by:
stop in interface Service

getJournal

public <K> Journal<K> getJournal(LocalPersistenceService.PersistenceSpaceIdentifier persistentSpaceId,
                                 Serializer<K> keySerializer)
Description copied from interface: JournalProvider
Get the Journal implementation.

Specified by:
getJournal in interface JournalProvider
Type Parameters:
K - the store's key type.
Parameters:
persistentSpaceId - the ID of a persistent space, or null if the journal does not need to be persisted.
keySerializer - the key serializer, or null if the journal does not need to be persisted.
Returns:
a Journal implementation.