Interface SocketManager

    • Method Detail

      • shutdown

        default void shutdown​(@Nullable
                              @Nullable String reason)
                       throws IOException
        Shuts 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 IOException
        Shuts down the Crowd Control socket and sends an explanation message to the streamer.
        Parameters:
        cause - cause for shutting down
        reason - the reason for shutting down
        Throws:
        IOException - an I/O exception occurred while trying to close the socket