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 |
---|---|
void |
closeChannel()
Close the channel associated with this handle
|
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 optionspublic void closeChannel() throws IOException
IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.