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