org.alembik.util
Enum TranscodingUtils.ReloadPolicy

java.lang.Object
  extended by java.lang.Enum<TranscodingUtils.ReloadPolicy>
      extended by org.alembik.util.TranscodingUtils.ReloadPolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TranscodingUtils.ReloadPolicy>
Enclosing class:
TranscodingUtils

public static enum TranscodingUtils.ReloadPolicy
extends java.lang.Enum<TranscodingUtils.ReloadPolicy>

The possible values for policies used for reloading a source file.

See Also:
TranscodingUtils.setReloadPolicy(TranscodingJob, org.alembik.util.TranscodingUtils.ReloadPolicy)

Enum Constant Summary
ALWAYS
          Force loading of a source file.
IF_OLDER_THAN
          The file in the storage will be reloaded, only if the original source file has changed and more than specified time has elapsed since its last loading.
NEVER
          Never reload a source file; if it does not exist and there is no appropriate transcoded file, the exception will be thrown.
ONLY_ONCE
          Do not reload a source file in the storage, if it is present.
 
Method Summary
static TranscodingUtils.ReloadPolicy valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TranscodingUtils.ReloadPolicy[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NEVER

public static final TranscodingUtils.ReloadPolicy NEVER
Never reload a source file; if it does not exist and there is no appropriate transcoded file, the exception will be thrown.


ONLY_ONCE

public static final TranscodingUtils.ReloadPolicy ONLY_ONCE
Do not reload a source file in the storage, if it is present.


ALWAYS

public static final TranscodingUtils.ReloadPolicy ALWAYS
Force loading of a source file.


IF_OLDER_THAN

public static final TranscodingUtils.ReloadPolicy IF_OLDER_THAN
The file in the storage will be reloaded, only if the original source file has changed and more than specified time has elapsed since its last loading.

See Also:
TranscodingUtils.SOURCE_OLDER_THAN_TIME
Method Detail

values

public static final TranscodingUtils.ReloadPolicy[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(TranscodingUtils.ReloadPolicy c : TranscodingUtils.ReloadPolicy.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static TranscodingUtils.ReloadPolicy valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name