@MessengerProperties(optionClass=SourceQueryOptions.class) public final class SourceQueryMessenger extends NettyMessenger<SourceQueryRequest,SourceQueryResponse<?>>
| Constructor and Description |
|---|
SourceQueryMessenger(Options options)
Constructor for SourceQueryMessenger.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
configure(Options options)
Populate configuration options.
|
protected NettyChannelFactory |
createChannelFactory()
createChannelFactory.
|
CompletableFuture<SourceQueryResponse<?>> |
send(InetSocketAddress address,
SourceQueryRequest request)
Send request to the underlying
Transport |
protected Object |
transformProperties(InetSocketAddress address,
SourceQueryRequest request)
transformProperties.
|
acquireContext, applyDefault, attach, createFactoryProvider, getChannelFactory, getExecutor, getFactoryProvider, getOptions, getTransport, lockedOption, receive, sendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, get, getOrDefault, getOrDefault, lock, set, unlockprotected void configure(Options options)
configure in class NettyMessenger<SourceQueryRequest,SourceQueryResponse<?>>options - The Options instance holding the configuration dataprotected NettyChannelFactory createChannelFactory()
createChannelFactory.
createChannelFactory in class NettyMessenger<SourceQueryRequest,SourceQueryResponse<?>>NettyChannelFactory objectpublic CompletableFuture<SourceQueryResponse<?>> send(InetSocketAddress address, SourceQueryRequest request)
Send request to the underlying Transport
send in interface Messenger<SourceQueryRequest,SourceQueryResponse<?>>send in class NettyMessenger<SourceQueryRequest,SourceQueryResponse<?>>address - a InetSocketAddress objectrequest - a R objectCompletableFuture objectprotected Object transformProperties(InetSocketAddress address, SourceQueryRequest request)
transformProperties.
transformProperties in class NettyMessenger<SourceQueryRequest,SourceQueryResponse<?>>address - a InetSocketAddress objectrequest - a R objectObject objectpublic void close()
throws IOException
NettyMessengerclose in interface Closeableclose in interface AutoCloseableclose in class NettyMessenger<SourceQueryRequest,SourceQueryResponse<?>>IOExceptionCopyright © 2016–2024. All rights reserved.