Differences

This shows you the differences between two versions of the page.

Link to this comparison view

soloistconfigurationapi [2011/06/28 17:57]
predrag.radenkovic
soloistconfigurationapi [2011/06/28 18:00] (current)
predrag.radenkovic
Line 15: Line 15:
 ===== enterSOLoistFastMode() vs. leaveSOLoistFastMode() ===== ===== enterSOLoistFastMode() vs. leaveSOLoistFastMode() =====
 So-called "fast mode" is the (misleading) name for the following cache configuration: So-called "fast mode" is the (misleading) name for the following cache configuration:
-thread cache > shared cache > dummy ORM+thread cache > shared cache > dummy ORM
 Therewith, all created objects will end up in the shared cache (no objects will be written to the database), and no objects can be read from the database. Therewith, all created objects will end up in the shared cache (no objects will be written to the database), and no objects can be read from the database.
 This is typically used during construction of GUI structure. This is typically used during construction of GUI structure.
 These operations are equivalent to the following calls: These operations are equivalent to the following calls:
-<java>+<code java>
 public void enterSOLoistFastMode() throws ConfigException { public void enterSOLoistFastMode() throws ConfigException {
  useSharedCache(true);  useSharedCache(true);
Line 30: Line 31:
  useUpdateRequestsForCommit(true);  useUpdateRequestsForCommit(true);
  }  }
-</java>+</code> 
 + 
 +===== freezeSharedCache() vs. thawSharedCache() ===== 
 +"Freezing" shared cache means making the contents of the shared cache immutable. "Thawing" is the opposite. This is often used in combination with the "fast mode". 
 +This is accomplished by replacing the implementation of  shared cache. Currently, frozen one is an ImmutablePassThroughSharedCache and the "normal" one is a SharedCache. 
  
  
Print/export