Enum ByteBufferStoringSubscriber.TransferResult
- java.lang.Object
-
- java.lang.Enum<ByteBufferStoringSubscriber.TransferResult>
-
- software.amazon.awssdk.utils.async.ByteBufferStoringSubscriber.TransferResult
-
- All Implemented Interfaces:
Serializable
,Comparable<ByteBufferStoringSubscriber.TransferResult>
- Enclosing class:
- ByteBufferStoringSubscriber
public static enum ByteBufferStoringSubscriber.TransferResult extends Enum<ByteBufferStoringSubscriber.TransferResult>
The result ofByteBufferStoringSubscriber.transferTo(ByteBuffer)
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description END_OF_STREAM
Data was successfully transferred toout
, and the end of stream has been reached.SUCCESS
Data was successfully transferred toout
, but the end of stream has not been reached.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteBufferStoringSubscriber.TransferResult
valueOf(String name)
Returns the enum constant of this type with the specified name.static ByteBufferStoringSubscriber.TransferResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
END_OF_STREAM
public static final ByteBufferStoringSubscriber.TransferResult END_OF_STREAM
Data was successfully transferred toout
, and the end of stream has been reached. No future calls toByteBufferStoringSubscriber.transferTo(ByteBuffer)
will yield additional data.
-
SUCCESS
public static final ByteBufferStoringSubscriber.TransferResult SUCCESS
Data was successfully transferred toout
, but the end of stream has not been reached. Future calls toByteBufferStoringSubscriber.transferTo(ByteBuffer)
may yield additional data.
-
-
Method Detail
-
values
public static ByteBufferStoringSubscriber.TransferResult[] 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 (ByteBufferStoringSubscriber.TransferResult c : ByteBufferStoringSubscriber.TransferResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ByteBufferStoringSubscriber.TransferResult 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
-
-