Class ResponseImpl
java.lang.Object
com.tenio.core.network.entity.protocol.implement.ResponseImpl
- All Implemented Interfaces:
Response
The implementation for response.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
boolean
static Response
priority
(ResponsePriority priority) setContent
(byte[] content) setRecipient
(Player player) setRecipients
(Collection<Player> players) toString()
void
write()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.tenio.core.network.entity.protocol.Response
writeInDelay
-
Method Details
-
newInstance
-
getContent
public byte[] getContent()- Specified by:
getContent
in interfaceResponse
-
setContent
- Specified by:
setContent
in interfaceResponse
-
getPlayers
- Specified by:
getPlayers
in interfaceResponse
-
getNonSessionPlayers
- Specified by:
getNonSessionPlayers
in interfaceResponse
-
getRecipientSocketSessions
- Specified by:
getRecipientSocketSessions
in interfaceResponse
-
getRecipientDatagramSessions
- Specified by:
getRecipientDatagramSessions
in interfaceResponse
-
getRecipientWebSocketSessions
- Specified by:
getRecipientWebSocketSessions
in interfaceResponse
-
setRecipients
- Specified by:
setRecipients
in interfaceResponse
-
setRecipient
- Specified by:
setRecipient
in interfaceResponse
-
prioritizedUdp
- Specified by:
prioritizedUdp
in interfaceResponse
-
encrypted
-
priority
-
isEncrypted
public boolean isEncrypted()- Specified by:
isEncrypted
in interfaceResponse
-
getPriority
- Specified by:
getPriority
in interfaceResponse
-
write
public void write() -
toString
-