public class RedisMessage
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected @NotNull java.lang.String |
channel |
protected @Nullable com.google.common.io.ByteArrayDataInput |
data |
protected byte[] |
rawData |
protected @NotNull java.lang.String |
sourceServerID |
protected long |
timestamp |
构造器和说明 |
---|
RedisMessage(@NotNull java.lang.String channel,
@NotNull java.lang.String sourceServerID,
long timestamp,
byte[] raw) |
限定符和类型 | 方法和说明 |
---|---|
<T> T |
apply(@NotNull java.util.function.Function<com.google.common.io.ByteArrayDataInput,T> handler) |
@NotNull java.lang.String |
channel() |
com.google.common.io.ByteArrayDataInput |
data() |
com.google.common.io.ByteArrayDataInput |
dataCopy() |
@NotNull java.lang.String |
getChannel() |
com.google.common.io.ByteArrayDataInput |
getData() |
@NotNull java.lang.String |
getSourceServerID() |
long |
getTimestamp() |
boolean |
isLocalMessage()
判断当前消息是否为本地(当前服务器)发出的。
|
byte[] |
raw() |
void |
reset() |
@NotNull java.lang.String |
sourceID() |
long |
timestamp() |
@NotNull protected final @NotNull java.lang.String channel
@NotNull protected final @NotNull java.lang.String sourceServerID
protected final long timestamp
protected final byte[] rawData
@Nullable protected @Nullable com.google.common.io.ByteArrayDataInput data
public RedisMessage(@NotNull @NotNull java.lang.String channel, @NotNull @NotNull java.lang.String sourceServerID, long timestamp, byte[] raw)
public boolean isLocalMessage()
@NotNull public @NotNull java.lang.String getSourceServerID()
@NotNull public @NotNull java.lang.String sourceID()
@NotNull public @NotNull java.lang.String getChannel()
@NotNull public @NotNull java.lang.String channel()
public long getTimestamp()
public long timestamp()
public byte[] raw()
public com.google.common.io.ByteArrayDataInput data()
public com.google.common.io.ByteArrayDataInput getData()
public void reset()
public com.google.common.io.ByteArrayDataInput dataCopy()
public <T> T apply(@NotNull @NotNull java.util.function.Function<com.google.common.io.ByteArrayDataInput,T> handler)
Copyright © 2025. All rights reserved.