de.fzj.unicore.wsrflite.persistence
Annotation Type Persistent


@Documented
@Inherited
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Persistent

annotate ws-resource implementation class with persistence settings

Author:
schuller

Optional Element Summary
 boolean allowConcurrentAccess
          whether access to wsresources can be done from concurrent threads
if false, the hosting environment will forbid concurrent access by "locking" the instance for the duration of a request.
 LoadSemantics loadSemantics
          load semantics: "load once" or normal
"Load once" means: the instance is kept in memory, but changes are written to disk as well (in case you are using disk persistence)
"Normal" means: the instance is not kept in memory, but reloaded from disk on each request
 

loadSemantics

public abstract LoadSemantics loadSemantics
load semantics: "load once" or normal
"Load once" means: the instance is kept in memory, but changes are written to disk as well (in case you are using disk persistence)
"Normal" means: the instance is not kept in memory, but reloaded from disk on each request

Default:
de.fzj.unicore.wsrflite.persistence.LoadSemantics.NORMAL

allowConcurrentAccess

public abstract boolean allowConcurrentAccess
whether access to wsresources can be done from concurrent threads
if false, the hosting environment will forbid concurrent access by "locking" the instance for the duration of a request.
NOTE: You can control concurrent access on a per method level using the ConcurrentAccess annotation

Default:
false


Copyright © 2010. All Rights Reserved.