@FunctionalInterface public interface EventLoopScheduler
EventLoop to handle a connection to the
specified Endpoint.| Modifier and Type | Method and Description |
|---|---|
ReleasableHolder<io.netty.channel.EventLoop> |
acquire(Endpoint endpoint,
SessionProtocol sessionProtocol)
Acquires an
EventLoop that is expected to handle a connection to the specified Endpoint. |
ReleasableHolder<io.netty.channel.EventLoop> acquire(Endpoint endpoint, SessionProtocol sessionProtocol)
EventLoop that is expected to handle a connection to the specified Endpoint.
The caller must release the returned EventLoop back by calling ReleasableHolder.release()
so that ClientFactory utilizes EventLoops efficiently.Copyright © 2020 LeanCloud. All rights reserved.