Interface Response
- All Known Implementing Classes:
ResponseImpl
public interface Response
The response was formed when the server wants to send a message to clients.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
boolean
priority
(ResponsePriority priority) setContent
(byte[] content) setRecipient
(Player player) setRecipients
(Collection<Player> players) void
write()
default void
writeInDelay
(int delayInSeconds)
-
Method Details
-
getContent
byte[] getContent() -
setContent
-
getPlayers
Collection<Player> getPlayers() -
getNonSessionPlayers
Collection<Player> getNonSessionPlayers() -
getRecipientSocketSessions
Collection<Session> getRecipientSocketSessions() -
getRecipientDatagramSessions
Collection<Session> getRecipientDatagramSessions() -
getRecipientWebSocketSessions
Collection<Session> getRecipientWebSocketSessions() -
setRecipients
-
setRecipient
-
prioritizedUdp
Response prioritizedUdp() -
encrypted
Response encrypted() -
priority
-
isEncrypted
boolean isEncrypted() -
getPriority
ResponsePriority getPriority() -
write
void write() -
writeInDelay
default void writeInDelay(int delayInSeconds)
-