Package com.slack.api.bolt.socket_mode
Class SocketModeApp
java.lang.Object
com.slack.api.bolt.socket_mode.SocketModeApp
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSocketModeApp(App app) SocketModeApp(App app, int concurrency) SocketModeApp(SocketModeClient socketModeClient, App app) If you would like to synchronously detect the connection error as an exception when bootstrapping, use this constructor.SocketModeApp(String appToken, App app) SocketModeApp(String appToken, App app, int concurrency) SocketModeApp(String appToken, App app, SocketModeClient.Backend backend) SocketModeApp(String appToken, App app, SocketModeClient.Backend backend, int concurrency) SocketModeApp(String appToken, App app, SocketModeClient.Backend backend, Function<SocketModeApp.ErrorContext, Response> errorHandler) SocketModeApp(String appToken, App app, SocketModeClient.Backend backend, Function<SocketModeApp.ErrorContext, Response> errorHandler, int concurrency) SocketModeApp(String appToken, SocketModeClient.Backend backend, App app) SocketModeApp(String appToken, SocketModeClient.Backend backend, Function<SocketModeApp.ErrorContext, Response> errorHandler, App app) SocketModeApp(String appToken, SocketModeClient.Backend backend, Function<SocketModeApp.ErrorContext, Response> errorHandler, App app, int concurrency) SocketModeApp(Supplier<SocketModeClient> clientFactory, App app) -
Method Summary
-
Constructor Details
-
SocketModeApp
- Throws:
IOException
-
SocketModeApp
- Throws:
IOException
-
SocketModeApp
- Throws:
IOException
-
SocketModeApp
- Throws:
IOException
-
SocketModeApp
- Throws:
IOException
-
SocketModeApp
- Throws:
IOException
-
SocketModeApp
public SocketModeApp(String appToken, App app, SocketModeClient.Backend backend, int concurrency) throws IOException - Throws:
IOException
-
SocketModeApp
public SocketModeApp(String appToken, SocketModeClient.Backend backend, Function<SocketModeApp.ErrorContext, Response> errorHandler, App app) throws IOException- Throws:
IOException
-
SocketModeApp
public SocketModeApp(String appToken, SocketModeClient.Backend backend, Function<SocketModeApp.ErrorContext, Response> errorHandler, App app, int concurrency) throws IOException- Throws:
IOException
-
SocketModeApp
public SocketModeApp(String appToken, App app, SocketModeClient.Backend backend, Function<SocketModeApp.ErrorContext, Response> errorHandler) throws IOException- Throws:
IOException
-
SocketModeApp
public SocketModeApp(String appToken, App app, SocketModeClient.Backend backend, Function<SocketModeApp.ErrorContext, Response> errorHandler, int concurrency) throws IOException- Throws:
IOException
-
SocketModeApp
-
SocketModeApp
If you would like to synchronously detect the connection error as an exception when bootstrapping, use this constructor. The first line can throw an exception in the case where either the token or network settings are valid.SocketModeClient client = Slack.getInstance().socketMode(appToken); SocketModeApp socketModeApp = new SocketModeApp(client, app);
-
-
Method Details