public class DefaultPoolPropertyResolver extends Object implements NettyPoolPropertyResolver
DefaultPoolPropertyResolver class.
Constructor and Description |
---|
DefaultPoolPropertyResolver(NettyPropertyResolver propertyResolver)
Constructor for DefaultPoolPropertyResolver.
|
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
resolveLocalAddress(Object data)
resolveLocalAddress.
|
Object |
resolvePoolKey(Object data)
resolvePoolKey.
|
InetSocketAddress |
resolveRemoteAddress(Object data)
Resolves the remote
InetSocketAddress of the recipient |
public DefaultPoolPropertyResolver(NettyPropertyResolver propertyResolver)
Constructor for DefaultPoolPropertyResolver.
propertyResolver
- a NettyPropertyResolver
objectpublic Object resolvePoolKey(Object data)
resolvePoolKey.
resolvePoolKey
in interface NettyPoolPropertyResolver
data
- a Object
objectObject
objectpublic InetSocketAddress resolveRemoteAddress(Object data) throws IllegalStateException
InetSocketAddress
of the recipientresolveRemoteAddress
in interface NettyPropertyResolver
data
- The Object
containing the remote InetSocketAddress
of the recipientInetSocketAddress
of the recipientIllegalStateException
- If the address could not be resolvedpublic InetSocketAddress resolveLocalAddress(Object data)
resolveLocalAddress.
resolveLocalAddress
in interface NettyPropertyResolver
data
- a Object
objectInetSocketAddress
objectCopyright © 2016–2024. All rights reserved.