Class LuckPermsMessagingService
java.lang.Object
me.lucko.luckperms.common.messaging.LuckPermsMessagingService
- All Implemented Interfaces:
InternalMessagingService,net.luckperms.api.messenger.IncomingMessageConsumer
public class LuckPermsMessagingService
extends Object
implements InternalMessagingService, net.luckperms.api.messenger.IncomingMessageConsumer
-
Constructor Summary
ConstructorsConstructorDescriptionLuckPermsMessagingService(LuckPermsPlugin plugin, net.luckperms.api.messenger.MessengerProvider messengerProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the messaging servicebooleanconsumeIncomingMessage(@NonNull net.luckperms.api.messenger.message.Message message) booleanconsumeIncomingMessageAsString(@NonNull String encodedString) static StringencodeMessageAsString(String type, UUID id, @Nullable com.google.gson.JsonElement content) net.luckperms.api.messenger.Messengernet.luckperms.api.messenger.MessengerProvidergetName()Gets the name of this messaging serviceGets the buffer for sending updates to other serversvoidpushCustomPayload(String channelId, String payload) Pushes a custom payload to connected servers.voidpushLog(net.luckperms.api.actionlog.Action logEntry) Pushes a log entry to connected servers.voidUses the messaging service to inform other servers about a general change.voidpushUserUpdate(User user) Pushes an update for a specific user.
-
Constructor Details
-
LuckPermsMessagingService
public LuckPermsMessagingService(LuckPermsPlugin plugin, net.luckperms.api.messenger.MessengerProvider messengerProvider)
-
-
Method Details
-
getName
Description copied from interface:InternalMessagingServiceGets the name of this messaging service- Specified by:
getNamein interfaceInternalMessagingService- Returns:
- the name of this messaging service
-
getMessenger
public net.luckperms.api.messenger.Messenger getMessenger()- Specified by:
getMessengerin interfaceInternalMessagingService
-
getMessengerProvider
public net.luckperms.api.messenger.MessengerProvider getMessengerProvider()- Specified by:
getMessengerProviderin interfaceInternalMessagingService
-
close
public void close()Description copied from interface:InternalMessagingServiceCloses the messaging service- Specified by:
closein interfaceInternalMessagingService
-
getUpdateBuffer
Description copied from interface:InternalMessagingServiceGets the buffer for sending updates to other servers- Specified by:
getUpdateBufferin interfaceInternalMessagingService- Returns:
- the update buffer
-
pushUpdate
public void pushUpdate()Description copied from interface:InternalMessagingServiceUses the messaging service to inform other servers about a general change.- Specified by:
pushUpdatein interfaceInternalMessagingService
-
pushUserUpdate
Description copied from interface:InternalMessagingServicePushes an update for a specific user.- Specified by:
pushUserUpdatein interfaceInternalMessagingService- Parameters:
user- the user
-
pushLog
public void pushLog(net.luckperms.api.actionlog.Action logEntry) Description copied from interface:InternalMessagingServicePushes a log entry to connected servers.- Specified by:
pushLogin interfaceInternalMessagingService- Parameters:
logEntry- the log entry
-
pushCustomPayload
Description copied from interface:InternalMessagingServicePushes a custom payload to connected servers.- Specified by:
pushCustomPayloadin interfaceInternalMessagingService- Parameters:
channelId- the channel idpayload- the payload
-
consumeIncomingMessage
- Specified by:
consumeIncomingMessagein interfacenet.luckperms.api.messenger.IncomingMessageConsumer
-
consumeIncomingMessageAsString
- Specified by:
consumeIncomingMessageAsStringin interfacenet.luckperms.api.messenger.IncomingMessageConsumer
-
encodeMessageAsString
-