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 of
ByteBufferStoringSubscriber.transferTo(ByteBuffer)
.-
Enum Constant Summary
Enum ConstantDescriptionData was successfully transferred toout
, and the end of stream has been reached.Data was successfully transferred toout
, but the end of stream has not been reached. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
Data was successfully transferred toout
, but the end of stream has not been reached. Future calls toByteBufferStoringSubscriber.transferTo(ByteBuffer)
may yield additional data.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-