Package dev.getelements.elements.rt
Interface AsyncConnectionGroup.Builder<ContextT,BuilderSocketT>
- Enclosing interface:
AsyncConnectionGroup<ContextT,SocketT>
public static interface AsyncConnectionGroup.Builder<ContextT,BuilderSocketT>
-
Method Summary
Modifier and TypeMethodDescriptionvoidBuilds theAsyncConnectionGroup.connection(Function<ContextT, BuilderSocketT> socketSupplier, Consumer<AsyncConnection<ContextT, BuilderSocketT>> asyncConnectionConsumer) Adds aAsyncConnectionwith the supplied creation and consumer function.
-
Method Details
-
connection
AsyncConnectionGroup.Builder<ContextT,BuilderSocketT> connection(Function<ContextT, BuilderSocketT> socketSupplier, Consumer<AsyncConnection<ContextT, BuilderSocketT>> asyncConnectionConsumer) Adds aAsyncConnectionwith the supplied creation and consumer function. -
build
Builds theAsyncConnectionGroup.
-