Package dev.qixils.crowdcontrol.socket
Interface SocketManager
-
- All Known Implementing Classes:
ClientSocketManager,CrowdControl,ServerSocketManager
public interface SocketManagerManages the connection(s) to a Crowd Control server or clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidshutdown()Deprecated.providing error messages viashutdown(String)is recommendedvoidshutdown(@Nullable Request cause, @Nullable String reason)Shuts down the Crowd Control socket and sends an explanation message to the streamer.default voidshutdown(@Nullable String reason)Shuts down the Crowd Control socket and sends an explanation message to the streamer.
-
-
-
Method Detail
-
shutdown
@Deprecated default void shutdown() throws IOException
Deprecated.providing error messages viashutdown(String)is recommendedShuts down the Crowd Control socket.- Throws:
IOException- an I/O exception occurred while trying to close the socket- See Also:
shutdown(String),shutdown(Request, String)
-
shutdown
default void shutdown(@Nullable @Nullable String reason) throws IOExceptionShuts down the Crowd Control socket and sends an explanation message to the streamer.- Parameters:
reason- the reason for shutting down- Throws:
IOException- an I/O exception occurred while trying to close the socket
-
shutdown
void shutdown(@Nullable @Nullable Request cause, @Nullable @Nullable String reason) throws IOExceptionShuts down the Crowd Control socket and sends an explanation message to the streamer.- Parameters:
cause- cause for shutting downreason- the reason for shutting down- Throws:
IOException- an I/O exception occurred while trying to close the socket
-
-