When draining, the system will stop polling for more records, but will attempt to process all already downloaded
records. Note that if you choose to close without draining, records already processed will still be committed
first before closing.
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.