Search in sources :

Example 1 with ConnectionBuilder

use of io.undertow.websockets.client.WebSocketClient.ConnectionBuilder in project spring-framework by spring-projects.

the class UndertowWebSocketClient method createConnectionBuilder.

/**
	 * Create a {@link ConnectionBuilder} for the given URI.
	 * <p>The default implementation creates a builder with the configured
	 * {@link #getXnioWorker() XnioWorker} and {@link #getPoolBufferSize()} and
	 * then passes it to the {@link #getConnectionBuilderConsumer() consumer}
	 * provided at construction time.
	 */
protected ConnectionBuilder createConnectionBuilder(URI url) {
    ConnectionBuilder builder = io.undertow.websockets.client.WebSocketClient.connectionBuilder(getXnioWorker(), new DefaultByteBufferPool(false, getPoolBufferSize()), url);
    this.builderConsumer.accept(builder);
    return builder;
}
Also used : DefaultByteBufferPool(io.undertow.server.DefaultByteBufferPool) ConnectionBuilder(io.undertow.websockets.client.WebSocketClient.ConnectionBuilder)

Aggregations

DefaultByteBufferPool (io.undertow.server.DefaultByteBufferPool)1 ConnectionBuilder (io.undertow.websockets.client.WebSocketClient.ConnectionBuilder)1