org.multiverse
Interface MultiverseConstants
- All Known Implementing Classes:
- AbstractTransaction, PassAllCommitLockFilter, TransactionBoilerplate, TransactionTemplate
public interface MultiverseConstants
An interface containing global constants (currently only sanity check). It is a final instead of something mutable so
that the JIT can completely remove code if some condition has not been met. The advantage is that you don't have to
pay to price for adding some kind of check, if it isn't used. The problem is that the scope is all classes loaded by
some classloader, share the same configuration. So one STM implementation with sanity checks enabled and the other
not, is not possible.
It is an interface so that is can be 'implemented' for easier access.
- Author:
- Peter Veentjer
___BUGSHAKER_ENABLED
static final boolean ___BUGSHAKER_ENABLED
___TRACING_ENABLED
static final boolean ___TRACING_ENABLED
Copyright © 2008-2010 Multiverse. All Rights Reserved.