setup() — netty Function Reference
Architecture documentation for the setup() function in AbstractSslEngineThroughputBenchmark.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ca0d4da7_d9bd_c25e_cbea_8bf660776f54["setup()"] 5b7b2002_8479_d3f0_0499_a02b6ca51fae["AbstractSslEngineThroughputBenchmark"] ca0d4da7_d9bd_c25e_cbea_8bf660776f54 -->|defined in| 5b7b2002_8479_d3f0_0499_a02b6ca51fae 3028c295_8671_d2c5_01b0_0cc454467906["doSetup()"] ca0d4da7_d9bd_c25e_cbea_8bf660776f54 -->|calls| 3028c295_8671_d2c5_01b0_0cc454467906 style ca0d4da7_d9bd_c25e_cbea_8bf660776f54 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
microbench/src/main/java/io/netty/microbench/handler/ssl/AbstractSslEngineThroughputBenchmark.java lines 41–62
@Setup(Level.Iteration)
public final void setup() throws Exception {
ByteBufAllocator allocator = new PooledByteBufAllocator(true);
initEngines(allocator);
initHandshakeBuffers();
cleanableWrapDstBuffer = allocateBuffer(clientEngine.getSession().getPacketBufferSize() << 2);
cleanableWrapSrcBuffer = allocateBuffer(messageSize);
wrapDstBuffer = cleanableWrapDstBuffer.buffer();
wrapSrcBuffer = cleanableWrapDstBuffer.buffer();
byte[] bytes = new byte[messageSize];
ThreadLocalRandom.current().nextBytes(bytes);
wrapSrcBuffer.put(bytes);
wrapSrcBuffer.flip();
// Complete the initial TLS handshake.
if (!doHandshake()) {
throw new IllegalStateException();
}
doSetup();
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does setup() do?
setup() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/handler/ssl/AbstractSslEngineThroughputBenchmark.java.
Where is setup() defined?
setup() is defined in microbench/src/main/java/io/netty/microbench/handler/ssl/AbstractSslEngineThroughputBenchmark.java at line 41.
What does setup() call?
setup() calls 1 function(s): doSetup.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free