code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
@Override public Flux<V> sinter(K... keys) { return reactiveCommandsWrapper.sinter(this, getRedisUri(), keys); }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
sinter
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
@Override public Mono<Long> sinter(ValueStreamingChannel<V> channel, K... keys) { return reactiveCommandsWrapper.sinter(this, getRedisUri(), channel, keys); }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
sinter
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
@Override public Mono<V> spop(K key) { return reactiveCommandsWrapper.spop(this, getRedisUri(), key); }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
spop
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
@Override public Flux<V> spop(K key, long count) { return reactiveCommandsWrapper.spop(this, getRedisUri(), key, count); }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
spop
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
@Override public Mono<V> srandmember(K key) { return reactiveCommandsWrapper.srandmember(this, getRedisUri(), key); }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
srandmember
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
@Override public Flux<V> srandmember(K key, long count) { return reactiveCommandsWrapper.srandmember(this, getRedisUri(), key, count); }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
srandmember
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
@Override public Mono<Long> srandmember(ValueStreamingChannel<V> channel, K key, long count) { return reactiveCommandsWrapper.srandmember(this, getRedisUri(), channel, key, count); }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
srandmember
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
@Override public Mono<Long> strlen(K key) { return reactiveCommandsWrapper.strlen(this, getRedisUri(), key); }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
strlen
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
@Override public Flux<V> sunion(K... keys) { return reactiveCommandsWrapper.sunion(this, getRedisUri(), keys); }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
sunion
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
@Override public Mono<Long> sunion(ValueStreamingChannel<V> channel, K... keys) { return reactiveCommandsWrapper.sunion(this, getRedisUri(), channel, keys); }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
sunion
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
@Override public Mono<Long> ttl(K key) { return reactiveCommandsWrapper.ttl(this, getRedisUri(), key); }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
ttl
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
@Override public Mono<String> type(K key) { return reactiveCommandsWrapper.type(this, getRedisUri(), key); }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
type
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
@Override public Mono<Long> zcard(K key) { return reactiveCommandsWrapper.zcard(this, getRedisUri(), key); }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
zcard
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
private String getRedisUri() { if (redisUri == null) { redisUri = RedisConnectionManager.getRedisUri(this.getStatefulConnection().hashCode()); } return redisUri; }
Initialize a new instance. @param connection the connection to operate on. @param codec the codec for command encoding.
getRedisUri
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-lettuce-v6/src/main/java/io/arex/inst/lettuce/v6/standalone/RedisReactiveCommandsImplWrapper.java
Apache-2.0
public static String getRedisUri(ConnectionManager connectionManager) { // reflect call (< 3.20.0 && >= 3.17.3) if (getConfigMethod != null) { return connectionManager.getConfig().getMasterAddress(); } // reflect call (>= 3.20.0) if (!masterSlaveServersConfigSet.isEmpty()) { return masterSlaveServersConfigSet.iterator().next().getMasterAddress(); } final MasterSlaveServersConfig masterSlaveServersConfig = getMasterSlaveServersConfig(connectionManager); if (masterSlaveServersConfig == null) { return null; } masterSlaveServersConfigSet.add(masterSlaveServersConfig); return masterSlaveServersConfig.getMasterAddress(); }
redisson vesion < 3.20.0 && >= 3.17.3 ConnectionManager.getConfig().getMasterAddress() >= 3.20.0 ConnectionManager.getServiceManager().getConfig().getMasterAddress();
getRedisUri
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RedissonHelper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RedissonHelper.java
Apache-2.0
public static MasterSlaveServersConfig getMasterSlaveServersConfig(ConnectionManager connectionManager) { try { // ServerManager final Method getServiceMangerMethod = connectionManager.getClass().getMethod("getServiceManager"); final Object object = getServiceMangerMethod.invoke(connectionManager); if (object == null) { return null; } // MasterSlaveServersConfig final Method getMasterSlaveServersConfig = object.getClass().getMethod("getConfig"); return (MasterSlaveServersConfig) getMasterSlaveServersConfig.invoke(object); } catch (Exception e) { LogManager.warn("redis.masterSlaveConfig", e); return null; } }
redisson vesion < 3.20.0 && >= 3.17.3 ConnectionManager.getConfig().getMasterAddress() >= 3.20.0 ConnectionManager.getServiceManager().getConfig().getMasterAddress();
getMasterSlaveServersConfig
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RedissonHelper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RedissonHelper.java
Apache-2.0
public static CommandAsyncExecutor getCommandAsyncExecutor(RedissonClient redisson) { if (redisson == null || getCommandExecutorMethod == null) { return null; } try { return (CommandAsyncExecutor) getCommandExecutorMethod.invoke(redisson); } catch (Exception e) { LogManager.warn("redis.commandExecutor", e); return null; } }
compatible with redisson versions lower than 3.16.0 (<3.16.0) @param redisson @return
getCommandAsyncExecutor
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RedissonHelper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RedissonHelper.java
Apache-2.0
@Override public <U> CompletionStage<U> thenApply(Function<? super V, ? extends U> fn) { return future.thenApply(fn); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenApply
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<U> thenApplyAsync(Function<? super V, ? extends U> fn) { return future.thenApplyAsync(fn); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenApplyAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<U> thenApplyAsync(Function<? super V, ? extends U> fn, Executor executor) { return future.thenApplyAsync(fn, executor); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenApplyAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> thenAccept(Consumer<? super V> action) { return future.thenAccept(action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenAccept
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> thenAcceptAsync(Consumer<? super V> action) { return future.thenAcceptAsync(action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenAcceptAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> thenAcceptAsync(Consumer<? super V> action, Executor executor) { return future.thenAcceptAsync(action, executor); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenAcceptAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> thenRun(Runnable action) { return future.thenRun(action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenRun
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> thenRunAsync(Runnable action) { return future.thenRunAsync(action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenRunAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> thenRunAsync(Runnable action, Executor executor) { return future.thenRunAsync(action, executor); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenRunAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U, V1> CompletionStage<V1> thenCombine(CompletionStage<? extends U> other, BiFunction<? super V, ? super U, ? extends V1> fn) { return future.thenCombine(other, fn); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenCombine
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U, V1> CompletionStage<V1> thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super V, ? super U, ? extends V1> fn) { return future.thenCombineAsync(other, fn); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenCombineAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U, V1> CompletionStage<V1> thenCombineAsync(CompletionStage<? extends U> other, BiFunction<? super V, ? super U, ? extends V1> fn, Executor executor) { return future.thenCombineAsync(other, fn, executor); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenCombineAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<Void> thenAcceptBoth(CompletionStage<? extends U> other, BiConsumer<? super V, ? super U> action) { return future.thenAcceptBoth(other, action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenAcceptBoth
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<Void> thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super V, ? super U> action) { return future.thenAcceptBothAsync(other, action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenAcceptBothAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<Void> thenAcceptBothAsync(CompletionStage<? extends U> other, BiConsumer<? super V, ? super U> action, Executor executor) { return future.thenAcceptBothAsync(other, action, executor); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenAcceptBothAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> runAfterBoth(CompletionStage<?> other, Runnable action) { return future.runAfterBoth(other, action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
runAfterBoth
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> runAfterBothAsync(CompletionStage<?> other, Runnable action) { return future.runAfterBothAsync(other, action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
runAfterBothAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> runAfterBothAsync(CompletionStage<?> other, Runnable action, Executor executor) { return future.runAfterBothAsync(other, action, executor); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
runAfterBothAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<U> applyToEither(CompletionStage<? extends V> other, Function<? super V, U> fn) { return future.applyToEither(other, fn); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
applyToEither
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<U> applyToEitherAsync(CompletionStage<? extends V> other, Function<? super V, U> fn) { return future.applyToEitherAsync(other, fn); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
applyToEitherAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<U> applyToEitherAsync(CompletionStage<? extends V> other, Function<? super V, U> fn, Executor executor) { return future.applyToEitherAsync(other, fn, executor); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
applyToEitherAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> acceptEither(CompletionStage<? extends V> other, Consumer<? super V> action) { return future.acceptEither(other, action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
acceptEither
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> acceptEitherAsync(CompletionStage<? extends V> other, Consumer<? super V> action) { return future.acceptEitherAsync(other, action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
acceptEitherAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> acceptEitherAsync(CompletionStage<? extends V> other, Consumer<? super V> action, Executor executor) { return future.acceptEitherAsync(other, action, executor); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
acceptEitherAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> runAfterEither(CompletionStage<?> other, Runnable action) { return future.runAfterEither(other, action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
runAfterEither
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> runAfterEitherAsync(CompletionStage<?> other, Runnable action) { return future.runAfterEitherAsync(other, action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
runAfterEitherAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<Void> runAfterEitherAsync(CompletionStage<?> other, Runnable action, Executor executor) { return future.runAfterEitherAsync(other, action, executor); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
runAfterEitherAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<U> thenCompose(Function<? super V, ? extends CompletionStage<U>> fn) { return future.thenCompose(fn); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenCompose
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<U> thenComposeAsync(Function<? super V, ? extends CompletionStage<U>> fn) { return future.thenComposeAsync(fn); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenComposeAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<U> thenComposeAsync(Function<? super V, ? extends CompletionStage<U>> fn, Executor executor) { return future.thenComposeAsync(fn, executor); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
thenComposeAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<U> handle(BiFunction<? super V, Throwable, ? extends U> fn) { return future.handle(fn); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
handle
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<U> handleAsync(BiFunction<? super V, Throwable, ? extends U> fn) { return future.handleAsync(fn); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
handleAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public <U> CompletionStage<U> handleAsync(BiFunction<? super V, Throwable, ? extends U> fn, Executor executor) { return future.handleAsync(fn, executor); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
handleAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<V> whenComplete(BiConsumer<? super V, ? super Throwable> action) { return future.whenComplete(action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
whenComplete
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<V> whenCompleteAsync(BiConsumer<? super V, ? super Throwable> action) { return future.whenCompleteAsync(action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
whenCompleteAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<V> whenCompleteAsync(BiConsumer<? super V, ? super Throwable> action, Executor executor) { return future.whenCompleteAsync(action, executor); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
whenCompleteAsync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletionStage<V> exceptionally(Function<Throwable, ? extends V> fn) { return future.exceptionally(fn); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
exceptionally
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public CompletableFuture<V> toCompletableFuture() { return future; }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
toCompletableFuture
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
public V getNow(V valueIfAbsent) { return future.getNow(valueIfAbsent); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
getNow
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
public boolean complete(V value) { return future.complete(value); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
complete
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public boolean cancel(boolean mayInterruptIfRunning) { return future.cancel(mayInterruptIfRunning); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
cancel
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public boolean isCancelled() { return future.isCancelled(); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
isCancelled
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public boolean isDone() { return future.isDone(); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
isDone
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public V get() throws InterruptedException, ExecutionException { return future.get(); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
get
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { return future.get(timeout, unit); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
get
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public boolean isSuccess() { return future.isDone() && !future.isCompletedExceptionally(); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
isSuccess
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public Throwable cause() { if (future.isDone()) { try { future.getNow(null); } catch (CompletionException e) { return e.getCause(); } catch (CancellationException e) { return e; } } return null; }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
cause
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public V getNow() { return future.getNow(null); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
getNow
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public V join() { return future.join(); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
join
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public boolean await(long timeout, TimeUnit unit) throws InterruptedException { try { future.get(timeout, unit); } catch (ExecutionException e) { // skip } catch (TimeoutException e) { return false; } return true; }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
await
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public boolean await(long timeoutMillis) throws InterruptedException { return await(timeoutMillis, TimeUnit.MILLISECONDS); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
await
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public RFuture<V> sync() throws InterruptedException { try { future.get(); return this; } catch (ExecutionException e) { throw (RuntimeException) e.getCause(); } }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
sync
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public RFuture<V> syncUninterruptibly() { try { future.join(); return this; } catch (CompletionException e) { throw (RuntimeException) e.getCause(); } }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
syncUninterruptibly
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public RFuture<V> await() throws InterruptedException { try { future.get(); } catch (ExecutionException e) { // skip } return this; }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
await
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public RFuture<V> awaitUninterruptibly() { try { future.join(); } catch (Exception e) { // skip } return this; }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
awaitUninterruptibly
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public boolean awaitUninterruptibly(long timeout, TimeUnit unit) { try { future.get(timeout, unit); } catch (ExecutionException | TimeoutException e) { // skip } catch (InterruptedException e) { Thread.currentThread().interrupt(); } return future.isDone(); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
awaitUninterruptibly
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public boolean awaitUninterruptibly(long timeoutMillis) { return awaitUninterruptibly(timeoutMillis, TimeUnit.MILLISECONDS); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
awaitUninterruptibly
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
@Override public void onComplete(BiConsumer<? super V, ? super Throwable> action) { lastFuture = lastFuture.whenComplete(action); }
In different redisson versions, the implementation classes of interface Rfuture are different. Refer to class org.redisson.misc.CompletableFutureWrapper, custom implementation RFutureWrapper is used to support replay. @param <V>
onComplete
java
arextest/arex-agent-java
arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/redis/arex-redission-v3/src/main/java/io/arex/inst/redisson/v3/common/RFutureWrapper.java
Apache-2.0
public static boolean matchAndRemoveRequestParams(Map<String, List<String>> requestParams, String name, String value) { if (MapUtils.isEmpty(requestParams)) { return false; } List<String> values = requestParams.get(name); if(CollectionUtil.isEmpty(values)){ return false; } Iterator<String> iterator = values.iterator(); while (iterator.hasNext()) { String next = iterator.next(); if (StringUtil.equals(next, value)) { iterator.remove(); return true; } } return false; }
match requset params @param requestParams @param name @param value @return
matchAndRemoveRequestParams
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/ServletUtil.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/ServletUtil.java
Apache-2.0
public static Map<String, List<String>> getRequestParams(String queryString) { if (StringUtil.isEmpty(queryString)) { return Collections.emptyMap(); } MultiValueMap<String, String> paramsKeyValueMap = UriComponentsBuilder.fromUriString( "?" + queryString).build().getQueryParams(); Map<String, List<String>> requestParamsMap = new HashMap<>(); for (Map.Entry<String, List<String>> entry : paramsKeyValueMap.entrySet()) { requestParamsMap.put(entry.getKey(), new ArrayList<>(entry.getValue())); } return requestParamsMap; }
obtain requset params @param queryString @return
getRequestParams
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/ServletUtil.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/ServletUtil.java
Apache-2.0
public static ApplicationContext getApplicationContext(Object servletContext) { if (springApplicationContext != null) { return springApplicationContext; } Method getWebApplicationContextMethod = ReflectUtil.getMethodWithoutClassType(WebApplicationContextUtils.class.getName(), "getWebApplicationContext", SERVLET_CONTEXT_JAVAX); if (getWebApplicationContextMethod == null) { getWebApplicationContextMethod = ReflectUtil.getMethodWithoutClassType(WebApplicationContextUtils.class.getName(), "getWebApplicationContext", SERVLET_CONTEXT_JAKARTA); } springApplicationContext = (ApplicationContext) ReflectUtil.invoke(getWebApplicationContextMethod, null, servletContext); return springApplicationContext; }
The caller should consider the issue of Spring version differences that may throw exceptions. (NoSuchMethodException, NoSuchMethodError, etc.)
getApplicationContext
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/SpringUtil.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/SpringUtil.java
Apache-2.0
public static Set<RequestMappingInfo> getAllRequestMappingInfo(Object servletContext) { if (springRequestMappings == null) { ApplicationContext applicationContext = getApplicationContext(servletContext); if (applicationContext == null) { return null; } RequestMappingInfoHandlerMapping handlerMapping = applicationContext.getBean(RequestMappingInfoHandlerMapping.class); springRequestMappings = handlerMapping.getHandlerMethods().keySet(); } return springRequestMappings; }
The caller should consider the issue of Spring version differences that may throw exceptions. (NoSuchMethodException, NoSuchMethodError, etc.)
getAllRequestMappingInfo
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/SpringUtil.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/SpringUtil.java
Apache-2.0
public static String getPatternFromRequestMapping(Object httpServletRequest, Object servletContext) { Set<RequestMappingInfo> requestMappingInfos = getAllRequestMappingInfo(servletContext); if (CollectionUtil.isEmpty(requestMappingInfos)) { return null; } setPathAttribute(httpServletRequest); if (getMatchMethodHolder == null) { Method getMatchMethod = ReflectUtil.getMethodWithoutClassType(RequestMappingInfo.class.getName(), "getMatchingCondition", SERVLET_REQUEST_JAVAX); if (getMatchMethod == null) { getMatchMethod = ReflectUtil.getMethodWithoutClassType(RequestMappingInfo.class.getName(), "getMatchingCondition", SERVLET_REQUEST_JAKARTA); } getMatchMethodHolder = MethodHolder.build(getMatchMethod); } Set<String> patterns = new HashSet<>(); PatternsRequestCondition patternsCondition; for (RequestMappingInfo mappingInfo : requestMappingInfos) { /* * fast reflect RequestMappingInfo.getMatchingCondition to get matched pattern * eg: /user/lucas/22 -> /user/{name}/{age} */ RequestMappingInfo matchMapping = getMatchMethodHolder.invoke(mappingInfo, httpServletRequest); if (matchMapping != null) { patternsCondition = matchMapping.getPatternsCondition(); // getPatternValues is available in Spring 5.3.0+ if (GET_PATTERN_VALUES_METHOD != null) { patterns.addAll(matchMapping.getPatternValues()); } else if (patternsCondition != null) { patterns.addAll(patternsCondition.getPatterns()); } break; } } if (CollectionUtil.isEmpty(patterns)) { return null; } return patterns.iterator().next(); }
By use reflection method to mask the differences between servlet versions, it achieves common use @param httpServletRequest javax.servlet.http.HttpServletRequest or jakarta.servlet.http.HttpServletRequest @param servletContext javax.servlet.ServletContext or jakarta.servlet.ServletContext @return
getPatternFromRequestMapping
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/SpringUtil.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/SpringUtil.java
Apache-2.0
private static void setPathAttribute(Object httpServletRequest) { // ServletRequestPathUtils.class is available in Spring 5.3.0+ if (SERVLET_REQUEST_PATH_CLASS == null) { return; } if (parseAndCacheMethod == null) { parseAndCacheMethod = ReflectUtil.getMethodWithoutClassType(ServletRequestPathUtils.class.getName(), "parseAndCache", SERVLET_REQUEST_JAVAX); if (parseAndCacheMethod == null) { parseAndCacheMethod = ReflectUtil.getMethodWithoutClassType(ServletRequestPathUtils.class.getName(), "parseAndCache", SERVLET_REQUEST_JAKARTA); } } // execute ServletRequestPathUtils.parseAndCache, because getMatchingCondition need path attribute from request ReflectUtil.invoke(parseAndCacheMethod, null, httpServletRequest); }
By use reflection method to mask the differences between servlet versions, it achieves common use @param httpServletRequest javax.servlet.http.HttpServletRequest or jakarta.servlet.http.HttpServletRequest @param servletContext javax.servlet.ServletContext or jakarta.servlet.ServletContext @return
setPathAttribute
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/SpringUtil.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/SpringUtil.java
Apache-2.0
default String getRequestHeader(HttpServletRequest httpServletRequest, String name, String prefix) { String headerValue = getRequestHeader(httpServletRequest, name); if (StringUtil.isNotEmpty(headerValue) || StringUtil.isEmpty(prefix)) { return headerValue; } return getRequestHeader(httpServletRequest, prefix + name); }
Get the request header passed through the gateway.
getRequestHeader
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/adapter/ServletAdapter.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/adapter/ServletAdapter.java
Apache-2.0
default String getParameterFromQueryString(HttpServletRequest httpServletRequest, String name) { String queryString = getQueryString(httpServletRequest); if (StringUtil.isEmpty(queryString)) { return null; } int lastIndex = queryString.lastIndexOf(name); if (lastIndex < 0) { return null; } int start = lastIndex + name.length() + 1; int end = queryString.indexOf("&", start); end = end < 0 ? queryString.length() : end; return StringUtil.substring(queryString, start, end); }
Get the request header passed through the gateway.
getParameterFromQueryString
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/adapter/ServletAdapter.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/adapter/ServletAdapter.java
Apache-2.0
@Override public void sendError(int sc) throws IOException { copyBodyToResponse(false); try { super.sendError(sc); } catch (IllegalStateException ex) { // Possibly on Tomcat when called too late: fall back to silent setStatus super.setStatus(sc); } }
Create a new CachedBodyResponseWrapper for the given servlet response. @param response the original servlet response
sendError
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
@Override @SuppressWarnings("deprecation") public void sendError(int sc, String msg) throws IOException { copyBodyToResponse(false); try { super.sendError(sc, msg); } catch (IllegalStateException ex) { // Possibly on Tomcat when called too late: fall back to silent setStatus super.setStatus(sc, msg); } }
Create a new CachedBodyResponseWrapper for the given servlet response. @param response the original servlet response
sendError
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
@Override public void sendRedirect(String location) throws IOException { ArexContext context = ContextManager.currentContext(); if (context != null) { location = ServletUtil.appendUri(location, ArexConstants.RECORD_ID, context.getCaseId()); } copyBodyToResponse(false); super.sendRedirect(location); }
Create a new CachedBodyResponseWrapper for the given servlet response. @param response the original servlet response
sendRedirect
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
@Override public ServletOutputStream getOutputStream() throws IOException { if (this.outputStream == null) { this.outputStream = new ResponseServletOutputStream(getResponse().getOutputStream()); } return this.outputStream; }
Create a new CachedBodyResponseWrapper for the given servlet response. @param response the original servlet response
getOutputStream
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
@Override public PrintWriter getWriter() throws IOException { if (this.writer == null) { String characterEncoding = getCharacterEncoding(); this.writer = (characterEncoding != null ? new ResponsePrintWriter(characterEncoding) : new ResponsePrintWriter("ISO-8859-1")); } return this.writer; }
Create a new CachedBodyResponseWrapper for the given servlet response. @param response the original servlet response
getWriter
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
@Override public void flushBuffer() throws IOException { // do not flush the underlying response as the content has not been copied to it yet }
Create a new CachedBodyResponseWrapper for the given servlet response. @param response the original servlet response
flushBuffer
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
@Override public void setContentLength(int len) { if (len > this.content.size()) { this.content.resize(len); } this.contentLength = len; }
Create a new CachedBodyResponseWrapper for the given servlet response. @param response the original servlet response
setContentLength
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
@Override public void setContentLengthLong(long len) { if (len > Integer.MAX_VALUE) { throw new IllegalArgumentException("Content-Length exceeds CachedBodyResponseWrapper's maximum (" + Integer.MAX_VALUE + "): " + len); } int lenInt = (int) len; if (lenInt > this.content.size()) { this.content.resize(lenInt); } this.contentLength = lenInt; }
Create a new CachedBodyResponseWrapper for the given servlet response. @param response the original servlet response
setContentLengthLong
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
@Override public void setBufferSize(int size) { if (size > this.content.size()) { this.content.resize(size); } }
Create a new CachedBodyResponseWrapper for the given servlet response. @param response the original servlet response
setBufferSize
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
@Override public void resetBuffer() { this.content.reset(); }
Create a new CachedBodyResponseWrapper for the given servlet response. @param response the original servlet response
resetBuffer
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
@Override public void reset() { super.reset(); this.content.reset(); }
Create a new CachedBodyResponseWrapper for the given servlet response. @param response the original servlet response
reset
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
@Deprecated public int getStatusCode() { return getStatus(); }
Return the status code as specified on the response. @deprecated as of 5.2 in favor of {@link HttpServletResponse#getStatus()}
getStatusCode
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
public byte[] getContentAsByteArray() { return this.content.toByteArray(); }
Return the cached response content as a byte array.
getContentAsByteArray
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
public InputStream getContentInputStream() { return this.content.getInputStream(); }
Return an {@link InputStream} to the cached content. @since 4.2
getContentInputStream
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
public int getContentSize() { return this.content.size(); }
Return the current size of the cached content. @since 4.2
getContentSize
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
protected void copyBodyToResponse(boolean complete) throws IOException { if (this.content.size() > 0) { HttpServletResponse rawResponse = (HttpServletResponse) getResponse(); if ((complete || this.contentLength != null) && !rawResponse.isCommitted()) { if (rawResponse.getHeader("Transfer-Encoding") == null) { rawResponse.setContentLength(complete ? this.content.size() : this.contentLength); } this.contentLength = null; } this.content.writeTo(rawResponse.getOutputStream()); this.content.reset(); if (complete) { super.flushBuffer(); } } }
Copy the cached body content to the response. @param complete whether to set a corresponding content length for the complete cached body content @since 4.2
copyBodyToResponse
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0
@Override public void write(int b) throws IOException { content.write(b); }
Copy the cached body content to the response. @param complete whether to set a corresponding content length for the complete cached body content @since 4.2
write
java
arextest/arex-agent-java
arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
https://github.com/arextest/arex-agent-java/blob/master/arex-instrumentation/servlet/arex-httpservlet/src/main/java/io/arex/inst/httpservlet/wrapper/CachedBodyResponseWrapperV3.java
Apache-2.0