Package com.illumon.iris.controller
Interface ControllerDispatcherHandler.ConnectionFactory
- Enclosing class:
- ControllerDispatcherHandler
public static interface ControllerDispatcherHandler.ConnectionFactory
-
Method Summary
Modifier and TypeMethodDescription@Nullable QueryDispatcherConnectiongetIfAvailable(@NotNull String host, int port) @NotNull QueryDispatcherConnectionmake(@NotNull String host, int port, ConnectionMonitor.Params connectionMonitorParams, @Nullable BiConsumer<ClientEntry, com.fishlib.base.Command> commandHandler, @Nullable Consumer<ClientEntry> clientDeathHandler, @Nullable Consumer<QueryDispatcherConnection> newConnectionConsumer)
-
Method Details
-
make
@NotNull @NotNull QueryDispatcherConnection make(@NotNull @NotNull String host, int port, @Nullable ConnectionMonitor.Params connectionMonitorParams, @Nullable @Nullable BiConsumer<ClientEntry, com.fishlib.base.Command> commandHandler, @Nullable @Nullable Consumer<ClientEntry> clientDeathHandler, @Nullable @Nullable Consumer<QueryDispatcherConnection> newConnectionConsumer) throws IOException- Throws:
IOException
-
getIfAvailable
@Nullable @Nullable QueryDispatcherConnection getIfAvailable(@NotNull @NotNull String host, int port)
-