org.jboss.portal.common.concurrent.loader
Class LoadingPolicy

java.lang.Object
  extended by org.jboss.portal.common.concurrent.loader.LoadingPolicy

public class LoadingPolicy
extends java.lang.Object

Defines the loading policy for an object batch.

Version:
$Revision: 7228 $
Author:
Julien Viet

Field Summary
static LoadingPolicy LOAD_ALL_ASYNC
          When an attempt is made to load one object, all objects are loaded but the current thread will only have to wait the object it is requesting.
static LoadingPolicy LOAD_ALL_SYNC
          When an attempt is made to load one object, all objects are loaded and the current thread waits until all objects have been either loaded or failed.
static LoadingPolicy LOAD_ONE
          When an attempt is made to load object object, only the requested object will be loaded.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOAD_ALL_SYNC

public static final LoadingPolicy LOAD_ALL_SYNC
When an attempt is made to load one object, all objects are loaded and the current thread waits until all objects have been either loaded or failed.


LOAD_ALL_ASYNC

public static final LoadingPolicy LOAD_ALL_ASYNC
When an attempt is made to load one object, all objects are loaded but the current thread will only have to wait the object it is requesting.


LOAD_ONE

public static final LoadingPolicy LOAD_ONE
When an attempt is made to load object object, only the requested object will be loaded.