Package org.omegazero.net.nio.client
Class TLSClientManager
java.lang.Object
org.omegazero.net.nio.util.SelectorHandler
org.omegazero.net.nio.util.ConnectionSelectorHandler
org.omegazero.net.nio.client.TCPClientManager
org.omegazero.net.nio.client.TLSClientManager
- All Implemented Interfaces:
Runnable,NetClientManager,NetworkApplication
TLS client manager for TCP sockets.
- API Note:
- Before version 2.1.0, this class was in package
org.omegazero.net.client.
-
Field Summary
Fields inherited from class org.omegazero.net.nio.client.TCPClientManager
workerCreator -
Constructor Summary
ConstructorsConstructorDescriptionTLSClientManager(Function<SocketConnection, Consumer<Runnable>> worker, SSLContext sslContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected ChannelConnectioncreateConnection(SelectionKey selectionKey, ConnectionParameters params) protected voidCalled when a connection was established.Methods inherited from class org.omegazero.net.nio.client.TCPClientManager
close, connection, handleSelectedKey, init, loopIteration, startMethods inherited from class org.omegazero.net.nio.util.ConnectionSelectorHandler
handleConnectionClosed, onConnectionClosedMethods inherited from class org.omegazero.net.nio.util.SelectorHandler
closeSelector, initSelector, isRunning, registerChannel, registerChannel, runSelectorLoop, selectorKeys, selectorWakeupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.omegazero.net.common.NetworkApplication
run
-
Constructor Details
-
TLSClientManager
public TLSClientManager(Function<SocketConnection, Consumer<Runnable>> worker, SSLContext sslContext)
-
-
Method Details
-
createConnection
protected ChannelConnection createConnection(SelectionKey selectionKey, ConnectionParameters params) throws IOException - Specified by:
createConnectionin classTCPClientManager- Throws:
IOException
-
handleConnect
Description copied from class:TCPClientManagerCalled when a connection was established.- Specified by:
handleConnectin classTCPClientManager- Parameters:
conn- TheChannelConnectionobject representing the connection that was established
-