Package | Description |
---|---|
bayou.async |
Async programming model.
|
bayou.file |
Utilities for files.
|
bayou.http |
Http server.
|
bayou.ssl |
SSL support.
|
bayou.tcp |
Non-blocking TCP server.
|
bayou.util.function |
Some functional interfaces.
|
Modifier and Type | Method and Description |
---|---|
static <T> Async<Void> |
AsyncIterator.forEach(AsyncIterator<T> elements,
ConsumerX<T> action)
Perform action on each element.
|
default Async<Void> |
AsyncIterator.forEach(ConsumerX<T> action)
Perform action on each element.
|
default AsyncIterator<T> |
AsyncIterator.peek(ConsumerX<T> action)
Perform `action` on each element as they are being iterated.
|
default Async<T> |
Async.peek(ConsumerX<T> onSuccess)
After `this` action succeeds, perform an action on the value.
|
default Async<T> |
Async.peek(ConsumerX<T> onSuccess,
ConsumerX<Exception> onFailure)
After `this` action completes, perform an action on the result.
|
default Async<T> |
Async.peek(ConsumerX<T> onSuccess,
ConsumerX<Exception> onFailure)
After `this` action completes, perform an action on the result.
|
Constructor and Description |
---|
StaticHandler(String uriPrefix,
String dirPrefix,
ConsumerX<StaticFileConf> confMod)
Create a StaticHandler.
|
Modifier and Type | Method and Description |
---|---|
ConsumerX<ServerSocketChannel> |
HttpServerConf.get_serverSocketConf() |
ConsumerX<SocketChannel> |
HttpServerConf.get_socketConf() |
ConsumerX<SocketChannel> |
HttpClientConf.get_socketConf() |
ConsumerX<SSLEngine> |
HttpServerConf.get_sslEngineConf() |
ConsumerX<SSLEngine> |
HttpClientConf.get_sslEngineConf() |
Modifier and Type | Method and Description |
---|---|
HttpServerConf |
HttpServerConf.serverSocketConf(ConsumerX<ServerSocketChannel> action)
Action to configure the server socket.
|
HttpServerConf |
HttpServerConf.socketConf(ConsumerX<SocketChannel> action)
Action to configure each newly accepted socket.
|
HttpClientConf |
HttpClientConf.socketConf(ConsumerX<SocketChannel> action)
Action to configure each TCP socket.
|
HttpServerConf |
HttpServerConf.sslEngineConf(ConsumerX<SSLEngine> action)
Action to configure each SSLEngine.
|
HttpClientConf |
HttpClientConf.sslEngineConf(ConsumerX<SSLEngine> action)
Action to configure each SSLEngine.
|
Constructor and Description |
---|
SslChannel2Connection(boolean clientMode,
SSLContext sslContext,
ConsumerX<SSLEngine> sslEngineConf)
Create a TcpChannel to SslConnection converter
|
Modifier and Type | Field and Description |
---|---|
ConsumerX<ServerSocketChannel> |
TcpServer.Conf.serverSocketConf
Action to configure the server socket.
|
ConsumerX<SocketChannel> |
TcpServer.Conf.socketConf
Action to configure each newly accepted socket.
|
ConsumerX<SocketChannel> |
TcpClient.Conf.socketConf
Action to configure each newly created socket.
|
Modifier and Type | Method and Description |
---|---|
default ConsumerX<T> |
ConsumerX.then(ConsumerX<T> that)
Similar to
Consumer.andThen(java.util.function.Consumer) . |
Modifier and Type | Method and Description |
---|---|
default ConsumerX<T> |
ConsumerX.then(ConsumerX<T> that)
Similar to
Consumer.andThen(java.util.function.Consumer) . |