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 TypeMethodDescriptionvoid
Builds theAsyncConnectionGroup
.connection
(Function<ContextT, BuilderSocketT> socketSupplier, Consumer<AsyncConnection<ContextT, BuilderSocketT>> asyncConnectionConsumer) Adds aAsyncConnection
with the supplied creation and consumer function.
-
Method Details
-
connection
AsyncConnectionGroup.Builder<ContextT,BuilderSocketT> connection(Function<ContextT, BuilderSocketT> socketSupplier, Consumer<AsyncConnection<ContextT, BuilderSocketT>> asyncConnectionConsumer) Adds aAsyncConnection
with the supplied creation and consumer function. -
build
Builds theAsyncConnectionGroup
.
-