R
- A type of AbstractRequest
S
- A type of AbstractResponse
public abstract class NettySocketClient<R extends AbstractRequest,S extends AbstractResponse> extends AbstractClient<R,S>
Modifier | Constructor and Description |
---|---|
protected |
NettySocketClient()
Create a new client instance using the default configuration options.
|
protected |
NettySocketClient(Options options)
Create a new client instance using the provided configuration options.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract NettyMessenger<R,S> |
createMessenger(Options options)
Factory method for
Messenger . |
boolean |
equals(Object o) |
ScheduledExecutorService |
getExecutor()
The underlying
Executor used by this instance |
protected NettyMessenger<R,S> |
getMessenger()
Getter for the field
messenger . |
int |
hashCode() |
getOptions, id, send, send
protected NettySocketClient()
protected NettySocketClient(Options options)
options
- The Options
containing the configuration options that will be used by the clientOptionBuilder
protected abstract NettyMessenger<R,S> createMessenger(Options options)
Messenger
.createMessenger
in class AbstractClient<R extends AbstractRequest,S extends AbstractResponse>
options
- a Options
objectMessenger
objectpublic ScheduledExecutorService getExecutor()
The underlying Executor
used by this instance
getExecutor
in interface Client
getExecutor
in class AbstractClient<R extends AbstractRequest,S extends AbstractResponse>
Executor
objectprotected NettyMessenger<R,S> getMessenger()
messenger
.getMessenger
in class AbstractClient<R extends AbstractRequest,S extends AbstractResponse>
Messenger
objectpublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractClient<R extends AbstractRequest,S extends AbstractResponse>
IOException
Copyright © 2016–2024. All rights reserved.