public final class ClientServiceHandle<T> extends Object
Constructor and Description |
---|
ClientServiceHandle(String serviceName,
Function<Channel,org.xnio.IoFuture<T>> constructor)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
org.xnio.IoFuture<T> |
getClientService(Connection connection,
org.xnio.OptionMap optionMap)
Get or establish the future client service for the given connection.
|
public ClientServiceHandle(String serviceName, Function<Channel,org.xnio.IoFuture<T>> constructor)
static
fields.serviceName
- the service name (may not be null
)constructor
- the service future construction operationpublic org.xnio.IoFuture<T> getClientService(Connection connection, org.xnio.OptionMap optionMap)
connection
- the connectionoptionMap
- the service optionsCopyright © 2017 JBoss, a division of Red Hat, Inc.. All rights reserved.