Class RedisChannel
java.lang.Object
net.swofty.redisapi.api.RedisChannel
-
Field Summary
FieldsModifier and TypeFieldDescriptionName of the channel that messages are sent throughUsed to determine what type of function is being used to receive messages.Consumer that contains the function ran when a message is received on this channelClass<? extends RedisMessagingReceiveInterface> Class that contains the function ran when a message is received on this channelTimestamp in Unix milliseconds of when the channel last had a message received through it -
Constructor Summary
ConstructorsConstructorDescriptionRedisChannel(String channelName, Class<? extends RedisMessagingReceiveInterface> classz) RedisChannel(String channelName, Consumer<RedisMessagingReceiveEvent> receiveEventClass) -
Method Summary
-
Field Details
-
receiveEvent
Consumer that contains the function ran when a message is received on this channel -
receiveInterface
Class that contains the function ran when a message is received on this channel -
functionType
Used to determine what type of function is being used to receive messages. -
channelName
Name of the channel that messages are sent through -
timestamp
Timestamp in Unix milliseconds of when the channel last had a message received through it
-
-
Constructor Details
-
RedisChannel
-
RedisChannel
-