@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, send
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, get, getOrDefault, getOrDefault, lock, set, unlock
protected 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
NettyMessenger
close
in interface Closeable
close
in interface AutoCloseable
close
in class NettyMessenger<SourceQueryRequest,SourceQueryResponse<?>>
IOException
Copyright © 2016–2024. All rights reserved.