public abstract class RedisSerializableMessage
extends java.lang.Object
| 构造器和说明 |
|---|
RedisSerializableMessage() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static <T> @Nullable java.util.function.Function<RedisMessage,T> |
deserializerOf(@NotNull java.lang.Class<T> clazz) |
protected static <T> @Nullable java.util.function.BiConsumer<com.google.common.io.ByteArrayDataOutput,T> |
serializerOf(@NotNull java.lang.Class<T> clazz) |
abstract void |
writeData(@NotNull com.google.common.io.ByteArrayDataOutput out)
将当前消息内容写入到指定的输出流中。
|
public abstract void writeData(@NotNull
@NotNull com.google.common.io.ByteArrayDataOutput out)
throws java.io.IOException
out - 输出流,用于写入消息数据java.io.IOException - 如果写入过程中发生错误@Nullable
protected static <T> @Nullable java.util.function.BiConsumer<com.google.common.io.ByteArrayDataOutput,T> serializerOf(@NotNull
@NotNull java.lang.Class<T> clazz)
@Nullable protected static <T> @Nullable java.util.function.Function<RedisMessage,T> deserializerOf(@NotNull @NotNull java.lang.Class<T> clazz)
Copyright © 2025. All rights reserved.