Package org.omegazero.net.client
Class TLSClientManager
java.lang.Object
org.omegazero.net.common.SelectorHandler
org.omegazero.net.common.ConnectionSelectorHandler
org.omegazero.net.client.TCPClientManager
org.omegazero.net.client.TLSClientManager
- All Implemented Interfaces:
Runnable,NetClientManager,NetworkApplication
-
Field Summary
Fields inherited from class org.omegazero.net.client.TCPClientManager
worker -
Constructor Summary
ConstructorsConstructorDescriptionTLSClientManager(Consumer<Runnable> worker) TLSClientManager(Consumer<Runnable> worker, Collection<X509Certificate> additionalTrustCertificates) TLSClientManager(Consumer<Runnable> worker, TrustManager[] trustManagers) -
Method Summary
Modifier and TypeMethodDescriptionprotected ChannelConnectioncreateConnection(SelectionKey selectionKey, ConnectionParameters params) protected voidCalled when a connection was established.Methods inherited from class org.omegazero.net.client.TCPClientManager
close, connection, handleSelectedKey, init, loopIteration, startMethods inherited from class org.omegazero.net.common.ConnectionSelectorHandler
handleConnectionClosed, onConnectionClosedMethods inherited from class org.omegazero.net.common.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() -
TLSClientManager
-
TLSClientManager
public TLSClientManager(Consumer<Runnable> worker, Collection<X509Certificate> additionalTrustCertificates) -
TLSClientManager
-
-
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
-