connection) {
19 | super(TxSyncInvocationHandler.sync(connection));
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/src/main/java/io/lettuce/core/dynamic/CommandFactory.java:
--------------------------------------------------------------------------------
1 | package io.lettuce.core.dynamic;
2 |
3 | import io.lettuce.core.protocol.RedisCommand;
4 |
5 | /**
6 | * Strategy interface to create {@link RedisCommand}s.
7 | *
8 | * Implementing classes are required to construct {@link RedisCommand}s given an array of parameters for command execution.
9 | *
10 | * @author Mark Paluch
11 | * @since 5.0
12 | */
13 | @FunctionalInterface
14 | interface CommandFactory {
15 |
16 | /**
17 | * Create a new {@link RedisCommand} given {@code parameters}.
18 | *
19 | * @param parameters must not be {@code null}.
20 | * @return the {@link RedisCommand}.
21 | */
22 | RedisCommand