Package dev.qixils.crowdcontrol.socket
Class ClientSocketManager
- java.lang.Object
-
- dev.qixils.crowdcontrol.socket.ClientSocketManager
-
- All Implemented Interfaces:
SocketManager
@AvailableSince("3.0.0") public final class ClientSocketManager extends Object implements SocketManager
Manages the connection to the Crowd Control server.- Since:
- 3.0.0
-
-
Constructor Summary
Constructors Constructor Description ClientSocketManager(@NotNull RequestManager serverConfig)
Creates a new client-side socket manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
shutdown(@Nullable Request cause, @Nullable String reason)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface dev.qixils.crowdcontrol.socket.SocketManager
shutdown, shutdown
-
-
-
-
Constructor Detail
-
ClientSocketManager
@CheckReturnValue @Internal @AvailableSince("3.0.0") public ClientSocketManager(@NotNull @NotNull RequestManager serverConfig)
Creates a new client-side socket manager. This is intended only for use by the library.- Parameters:
serverConfig
- Crowd Control instance- Since:
- 3.0.0
-
-
Method Detail
-
shutdown
@AvailableSince("3.1.0") public void shutdown(@Nullable @Nullable Request cause, @Nullable @Nullable String reason) throws IOException
- Specified by:
shutdown
in interfaceSocketManager
- Throws:
IOException
-
-