Cumulus4j API
(1.1.0)

org.cumulus4j.store.datastoreversion
Class CommandApplyParam

java.lang.Object
  extended by org.cumulus4j.store.datastoreversion.CommandApplyParam

public class CommandApplyParam
extends Object


Field Summary
static String PROPERTY_KEY_TIMEOUT
           
 
Constructor Summary
CommandApplyParam(Cumulus4jStoreManager storeManager, CryptoContext cryptoContext, PersistenceManager persistenceManager, DatastoreVersion datastoreVersion, Properties workInProgressStateProperties)
           
 
Method Summary
 Date getApplyStartTimestamp()
           
 CryptoContext getCryptoContext()
           
 DatastoreVersion getDatastoreVersion()
           
 long getDatastoreVersionCommandApplyWorkInProgressTimeout()
          Get the time in milliseconds after which a WorkInProgressException should be thrown by the DatastoreVersionCommand.
 PersistenceManager getPersistenceManager()
           
 Cumulus4jStoreManager getStoreManager()
           
 Properties getWorkInProgressStateProperties()
           
 boolean isDatastoreVersionCommandApplyWorkInProgressTimeoutExceeded()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_KEY_TIMEOUT

public static final String PROPERTY_KEY_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

CommandApplyParam

public CommandApplyParam(Cumulus4jStoreManager storeManager,
                         CryptoContext cryptoContext,
                         PersistenceManager persistenceManager,
                         DatastoreVersion datastoreVersion,
                         Properties workInProgressStateProperties)
Parameters:
storeManager - TODO
cryptoContext - the context; must not be null.
persistenceManager - the persistence-manager; must not be null.
datastoreVersion - the current datastore-version (representing the last execution of the same command as currently being applied). Always null, if the command is final. Only not null, if the command is not final and was already applied in an earlier version.
workInProgressStateProperties - TODO
Method Detail

getStoreManager

public Cumulus4jStoreManager getStoreManager()

getCryptoContext

public CryptoContext getCryptoContext()

getPersistenceManager

public PersistenceManager getPersistenceManager()

getDatastoreVersion

public DatastoreVersion getDatastoreVersion()

getWorkInProgressStateProperties

public Properties getWorkInProgressStateProperties()

getDatastoreVersionCommandApplyWorkInProgressTimeout

public long getDatastoreVersionCommandApplyWorkInProgressTimeout()
Get the time in milliseconds after which a WorkInProgressException should be thrown by the DatastoreVersionCommand.

Returns:
the timeout in milliseconds.

getApplyStartTimestamp

public Date getApplyStartTimestamp()

isDatastoreVersionCommandApplyWorkInProgressTimeoutExceeded

public boolean isDatastoreVersionCommandApplyWorkInProgressTimeoutExceeded()

Cumulus4j API
(1.1.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.