Package io.quarkus.websockets.next
Interface UserData
- All Known Implementing Classes:
UserDataImpl
public interface UserData
Mutable user data associated with a connection. Implementations must be thread-safe.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()<VALUE> VALUEget(UserData.TypedKey<VALUE> key) <VALUE> VALUEput(UserData.TypedKey<VALUE> key, VALUE value) Associates the specified value with the specified key.<VALUE> VALUEremove(UserData.TypedKey<VALUE> key) intsize()
-
Method Details
-
get
- Type Parameters:
VALUE-- Parameters:
key-- Returns:
- the value or
nullif no mapping is found
-
put
Associates the specified value with the specified key. An old value is replaced by the specified value.- Parameters:
key-value-- Returns:
- the previous value associated with
key, ornullif no mapping exists
-
remove
- Type Parameters:
VALUE-- Parameters:
key-
-
size
int size() -
clear
void clear()
-