@Contract
public interface LazyServiceInitializer
Modifier and Type | Method and Description |
---|---|
void |
handleRequest(SelectableChannel channel)
Upon successful ACCEPT of every request on this port, the service
is called upon to handle the request.
|
boolean |
initializeService()
Upon accepting the first request on the port (to which this listener is
bound), the listener will select the appropriate provider and call this
method to let the actual service initialize itself.
|
boolean initializeService()
void handleRequest(SelectableChannel channel)
channel
- where the incoming request was accepted.Copyright © 2020. All rights reserved.