org.infinispan.factories.annotations
Annotation Type NonVolatile


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface NonVolatile

This annotation is used for components that will be registered in the ComponentRegistry, that are resilient to changes in configuration. Examples are the ComponentRegistry implementation used, which does not change regardless of the configuration. Components such as the LockManager, though, should never be marked as @NonVolatile since based on the configuration, different lock manager implementations may be selected. LockManager is, hence, not resilient to changes in the configuration. To sum up: A component is marked as NonVolatile when the component is not dependent on configuration changes that may happen between create() and start(). This is legacy since from JBoss Cache because in Infinispan there's only start but no create.

Since:
4.0
Author:
Manik Surtani (manik@jboss.org)


Google Analytics

Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.