public enum ConnectionIntent extends Enum<ConnectionIntent>
| Enum Constant and Description |
|---|
READ
Intention to use read-only operations through a connection.
|
WRITE
Intention to run read or write commands through a connection.
|
| Modifier and Type | Method and Description |
|---|---|
static ConnectionIntent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionIntent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionIntent READ
public static final ConnectionIntent WRITE
public static ConnectionIntent[] values()
for (ConnectionIntent c : ConnectionIntent.values()) System.out.println(c);
public static ConnectionIntent valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022 lettuce.io. All rights reserved.