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 |
|---|---|
void |
closeChannel()
Close the channel associated with this handle
|
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 optionspublic void closeChannel()
throws IOException
IOExceptionCopyright © 2022 JBoss, a division of Red Hat, Inc.. All rights reserved.