Freigeben über


Protocol Class

public final class Protocol
extends ExpandableStringEnum<Protocol>

Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted.

Field Summary

Modifier and Type Field and Description
static final Protocol ENCRYPTED

Static value Encrypted for Protocol.

static final Protocol PLAINTEXT

Static value Plaintext for Protocol.

Constructor Summary

Constructor Description
Protocol()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Protocol value.

Method Summary

Modifier and Type Method and Description
static Protocol fromString(String name)

Creates or finds a Protocol from its string representation.

static Collection<Protocol> values()

Gets known Protocol values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ENCRYPTED

public static final Protocol ENCRYPTED

Static value Encrypted for Protocol.

PLAINTEXT

public static final Protocol PLAINTEXT

Static value Plaintext for Protocol.

Constructor Details

Protocol

@Deprecated
public Protocol()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Protocol value.

Method Details

fromString

public static Protocol fromString(String name)

Creates or finds a Protocol from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding Protocol.

values

public static Collection values()

Gets known Protocol values.

Returns:

known Protocol values.

Applies to