Class Connection<LT, RT extends io.aether.net.fastMeta.RemoteApi>
java.lang.Object
io.aether.cloud.client.Connection<LT,RT>
- All Implemented Interfaces:
io.aether.utils.interfaces.Destroyable
- Direct Known Subclasses:
ConnectionRegistration, ConnectionWork
public abstract class Connection<LT, RT extends io.aether.net.fastMeta.RemoteApi>
extends Object
implements io.aether.utils.interfaces.Destroyable
Abstract base class for handling connections in the Aether Cloud client.
Manages the lifecycle of the underlying connection and connection state.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AetherCloudClientprotected final io.aether.net.fastMeta.MetaContextprotected RTfinal io.aether.utils.slots.EventConsumer<Boolean> Observable state listeners triggered when the connection writability or availability changes.protected final URI -
Constructor Summary
ConstructorsConstructorDescriptionConnection(AetherCloudClient client, URI uri, io.aether.net.fastMeta.FastMetaApi<LT, ?> localApiMeta, io.aether.net.fastMeta.FastMetaApi<?, RT> remoteApiMeta) -
Method Summary
Modifier and TypeMethodDescriptionio.aether.utils.futures.AFuturedestroy(boolean force) booleaninthashCode()protected booleanprotected voidonConnectionStateChanged(boolean isWritable)
-
Field Details
-
client
-
uri
-
ctx
protected final io.aether.net.fastMeta.MetaContext ctx -
rootApi
-
stateListeners
Observable state listeners triggered when the connection writability or availability changes.
-
-
Constructor Details
-
Connection
public Connection(AetherCloudClient client, URI uri, io.aether.net.fastMeta.FastMetaApi<LT, ?> localApiMeta, io.aether.net.fastMeta.FastMetaApi<?, RT> remoteApiMeta)
-
-
Method Details
-
isWritable
protected boolean isWritable() -
onConnectionStateChanged
protected void onConnectionStateChanged(boolean isWritable) -
getRootApi
-
equals
-
hashCode
-
destroy
public io.aether.utils.futures.AFuture destroy(boolean force) - Specified by:
destroyin interfaceio.aether.utils.interfaces.Destroyable
-