Package com.ditto.java
package com.ditto.java
-
ClassDescriptionDitto is the entrypoint for accessing Ditto-related functionality in the Java SDK.Functional interface for updating transport configuration.An address uniquely representing another device on the Ditto network.Represents an asynchronous operation that can be cancelled.Represents an attachment and can be used to insert the associated attachment into a document at a specific key.Manages the fetching of an attachment from remote peers.Callback interface for monitoring attachment fetch progress.The result of fetching an attachment.Event signaling the completion of an attachment download.Event signaling the deletion of an attachment.Represents a reference token for a specific attachment in the Ditto store.Provides feedback to the developer about Ditto authentication status.Represents a string-based authentication provider identifier used for login with Ditto.Provides information about the current authentication status.Handles authentication with Ditto Cloud for remote synchronization.Handler for authentication expiration events.Callback invoked when a login operation completes.Callback invoked when a login operation completes with client info.Result of a login operation.Function to perform cleanup operations during logout.Listener for authentication status changes.A store observation listener is called whenever an active store observer receives a new query result.A store observation listener is called whenever an active store observer receives a new query result.Represents the source or transport type for a connection condition.Configuration for creating a
Dittoinstance.Builder for creatingDittoConfiginstances.Functional interface for configuring experimental features.Defines how Ditto should connect to other peers.Configuration for connecting through a Ditto Big Peer server.Configuration for peer-to-peer connections without a server.Experimental features configuration for Ditto.Builder for creatingDittoConfig.Experimentalconfigurations.Represents a connection between two peers in a Ditto mesh network.Contains information about a remote peer that has requested a connection.Indicates whether a connection request should be authorized.Represents the type of transport used for aDittoConnectionbetween twoDittoPeers.Provides access to information about disk storage used by Ditto.Callback interface for receiving disk usage updates.Represents a directory or file in the Ditto working directory.All errors that are thrown by the Ditto SDK are wrapped as aDittoException.Represents an error that occurred during Ditto activation.The possible underlying reasons anDittoException.ActivationExceptionoccurs.The provided license token has expired.The provided license token is in an unsupported future format.Verification of the provided license token failed.TheDittoinstance has not yet been activated, which is achieved via a successful call toDitto.setOfflineOnlyLicenseToken(String).Represents an error that occurred during authentication with Ditto Cloud.The possible underlying reasons anDittoException.AuthenticationExceptionerror occurs.Authentication expiration handler is missing.Failed to authenticate with a remote server.Represents a fatal error that theDittoinstance cannot recover from.Errors related to IO devices.The possible underlying reasons anDittoException.IoExceptionoccurs.An I/O operation failed because the specified entity (such as a file) already exists.An I/O operation failed because the specified entity (such as a file) already exists.An I/O operation failed.An I/O operation failed because the necessary privileges to complete it were not present.Errors transforming Ditto mesh presence data to or from JSON encoding.The possible underlying reasons aDittoException.PresenceExceptionoccurs.Parsing presence from JSON failed.Generating presence JSON failed.Represents an error that occurred during database or storage operations.The possible underlying reasons aDittoException.StoreExceptionoccurs.The target file for the attachment copy already exists.The attachment data failed to be retrieved.The attachment file failed to be copied.The given attachment file could not be found.The attachment could not be found.The attachment could not be found.The attachment token was invalid.An error occurred with the storage backend (LMDB).A generic CRDT error occurred.The provided document content failed to be encoded.The document could not be found.The attachment copy failed.A problem occurred creating the attachment.A Counter couldn't be created from the decoded Map.Data could not be decoded.The document could not be decoded.The value could not be decoded.The provided value could not be encoded.A problem occurred fetching the attachment.The document's data at the specified path could not be obtained.The document ID's data at the specified path could not be obtained.The directory that Ditto attempted to use for its persisted data could not be initialized.An invalid CRDT type was encountered.The document's internal representation was invalid.The live query has not obtained a valid identifier.An invalid value was encountered for a corresponding CRDT type.The document did not have an_idkey when attempting to decode it.The document, represented as a CBOR map, had a key that was not a string.The chosen persistence directory is already in use by anotherDittoinstance.The provided query arguments were invalidCompilation of the provided query failed.The query was invalid.The query is invalid.The query is syntactically valid but uses features that are either not supported at all yet or not supported in a particular context.Represents an error that occurred in the transport layer.The possible underlying reasons aDittoException.TransportExceptionerror occurs.Decoding of transport diagnostics data failed.The wrong platform's DittoTransportConfig was provided.Some not-yet-categorized error occurred.Operation is not supported.Represents a validation error for data or configuration.The possible underlying reasons aDittoException.ValidationExceptionoccurs.Invalid base64-encoded string:If the amount of JSON data is too nested according to our self-imposed limits, or if the data cannot be parsed to determine the depth.The observability subsystem is unavailable.Expected valid CBOR.The provided DittoConfig is invalid.Expected valid JSON.The given Map was missing a required entry for the given key name.The value provided was not aMap.The object is or contain(s) types that aren't JSON compatible.The size of the provided metadata is too large.The providedDittoSmallPeerInfoSyncScopevalue didn't correspond with any known enum cases.Represents the type of file system item in aDittoDiskUsageItem.Main access for Ditto logging API.Callback interface for receiving Ditto log messages.Provides customization of Ditto's logging output.Singleton with static methods to customize Ditto's logging behavior.Enum representing the severity level for log messages.An instance of Ditto taking part in the mesh network.The entrypoint for all actions that relate to presence of other peers known by the current peer, either directly or through other peers.Handler interface for controlling incoming connection requests.Listener interface for receiving presence graph updates.Represents the Ditto mesh network of peers and their connections between each other.A token representing an active presence graph observation.Defines the interface for executing DQL queries.Represents the results returned when executing a DQL (Ditto Query Language) query.Represents a single match of a DQL query, similar to a "row" in SQL terms.Interface for Ditto resources that need explicit cleanup.A functional interface for signaling that the next item should be delivered.Provides access to execute Ditto queries.A store observer that monitors query results and invokes a handler when they change.Provides access to sync-related functionality of Ditto.A sync subscription configuresDittoto receive updates from remote peers about documents matching the subscription's query.Represents a database transaction for executing multiple DQL queries atomically.Represents the result of a transaction, indicating whether to commit or rollback.Represents a successful transaction that should be committed.Represents a transaction that should be rolled back.A functional interface for executing operations within a database transaction.Encapsulates information about a transaction.Represents the operational condition of a Ditto transport.Callback interface for monitoring transport condition changes.Provides diagnostic information about all active Ditto transports.Represents a snapshot of a specific transport's current state.Represents an unsigned 32-bit integer.Represents an unsigned 64-bit integer.