Interface InternalMessagingService
- All Known Implementing Classes:
LuckPermsMessagingService
public interface InternalMessagingService
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the messaging servicenet.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.
-
Method Details
-
getName
String getName()Gets the name of this messaging service- Returns:
- the name of this messaging service
-
getMessenger
net.luckperms.api.messenger.Messenger getMessenger() -
getMessengerProvider
net.luckperms.api.messenger.MessengerProvider getMessengerProvider() -
close
void close()Closes the messaging service -
getUpdateBuffer
BufferedRequest<Void> getUpdateBuffer()Gets the buffer for sending updates to other servers- Returns:
- the update buffer
-
pushUpdate
void pushUpdate()Uses the messaging service to inform other servers about a general change. -
pushUserUpdate
Pushes an update for a specific user.- Parameters:
user- the user
-
pushLog
void pushLog(net.luckperms.api.actionlog.Action logEntry) Pushes a log entry to connected servers.- Parameters:
logEntry- the log entry
-
pushCustomPayload
Pushes a custom payload to connected servers.- Parameters:
channelId- the channel idpayload- the payload
-