public interface QuicConnectionIdGenerator
| Modifier and Type | Method and Description |
|---|---|
boolean |
isIdempotent()
Returns true if the implementation is idempotent, which means we will get the same id
with the same input ByteBuffer.
|
int |
maxConnectionIdLength()
Returns the maximum length of a connection id.
|
java.nio.ByteBuffer |
newId(java.nio.ByteBuffer input,
int length)
Creates a new connection id with the given length.
|
java.nio.ByteBuffer |
newId(int length)
Creates a new connection id with the given length.
|
static QuicConnectionIdGenerator |
randomGenerator()
Return a
QuicConnectionIdGenerator which randomly generates new connection ids. |
static QuicConnectionIdGenerator |
signGenerator()
Return a
QuicConnectionIdGenerator which generates new connection ids by signing the given input. |
java.nio.ByteBuffer newId(int length)
length - the length of the id.java.nio.ByteBuffer newId(java.nio.ByteBuffer input,
int length)
input - the input which may be used to generate the id.length - the length of the id.int maxConnectionIdLength()
boolean isIdempotent()
static QuicConnectionIdGenerator randomGenerator()
QuicConnectionIdGenerator which randomly generates new connection ids.QuicConnectionIdGenerator which randomly generated ids.static QuicConnectionIdGenerator signGenerator()
QuicConnectionIdGenerator which generates new connection ids by signing the given input.QuicConnectionIdGenerator which generates ids by signing the given input.Copyright © 2020-2021 The Netty Project. All Rights Reserved.