Enum RandomAccessData.ResourceAccess
- java.lang.Object
-
- java.lang.Enum<RandomAccessData.ResourceAccess>
-
- fish.payara.micro.boot.loader.data.RandomAccessData.ResourceAccess
-
- All Implemented Interfaces:
Serializable
,Comparable<RandomAccessData.ResourceAccess>
- Enclosing interface:
- RandomAccessData
public static enum RandomAccessData.ResourceAccess extends Enum<RandomAccessData.ResourceAccess>
Lock modes for accessing the underlying resource.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RandomAccessData.ResourceAccess
valueOf(String name)
Returns the enum constant of this type with the specified name.static RandomAccessData.ResourceAccess[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ONCE
public static final RandomAccessData.ResourceAccess ONCE
Obtain access to the underlying resource once and keep it until the stream is closed.
-
PER_READ
public static final RandomAccessData.ResourceAccess PER_READ
Obtain access to the underlying resource on each read, releasing it when done.
-
-
Method Detail
-
values
public static RandomAccessData.ResourceAccess[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RandomAccessData.ResourceAccess c : RandomAccessData.ResourceAccess.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RandomAccessData.ResourceAccess valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-