Uses of Class
com.loomcache.common.protocol.Message
Packages that use Message
Package
Description
-
Uses of Message in com.loomcache.common.protocol
Methods in com.loomcache.common.protocol that return MessageModifier and TypeMethodDescriptionMessage.copy()Create a deep copy of this message.VersionedMessageAdapter.createFeatureUnavailableError(Feature feature, int correlationId) Create an error message for an unsupported operation.static @Nullable MessageMessageCodec.decode(InputStream in) Decode a Message from an InputStream.static @Nullable MessageMessageCodec.decode(InputStream in, WireCompression negotiatedCompression) Decode a Message from an InputStream using the negotiated compression mode.static @Nullable MessageMessageCodec.decode(ByteBuffer buf) Decode from a ByteBuffer (for NIO channel reads).static @Nullable MessageMessageCodec.decode(ByteBuffer buf, WireCompression negotiatedCompression) Decode from a ByteBuffer using the negotiated compression mode.@Nullable MessageVersionedMessageAdapter.decode(ByteBuffer buffer) Decode a message from a ByteBuffer, implementing forward compatibility.static MessageMessage.request(MessageType type) Create a request message.static MessageMessage.response(MessageType type, int correlationId) Create a response message.static MessageMessage.response(MessageType type, int correlationId, byte status) Create a response message with status.Message.withFlags(byte flags) Set message flags.Message.withFreshCorrelationId()Create a copy of this message with a fresh correlation ID.Message.withKey(byte @Nullable [] key) Message.withMapName(@Nullable String mapName) Set the target data structure name (map, queue, or topic).Message.withSenderId(@Nullable String senderId) Set the sender node ID.Message.withStatus(byte status) Set the response status code.Message.withTtl(long ttlMillis) Set the TTL for put operations.Message.withValue(byte @Nullable [] value) Set the message value.Methods in com.loomcache.common.protocol with parameters of type MessageModifier and TypeMethodDescriptionstatic ByteBufferEncode a Message into a ByteBuffer (for NIO channel writes).static ByteBufferMessageCodec.encode(Message msg, WireCompression compression) Encode a Message into a ByteBuffer using the negotiated compression mode.static voidMessageCodec.encode(Message msg, OutputStream out) Encode a Message to an OutputStream (for traditional I/O).static voidMessageCodec.encode(Message msg, OutputStream out, WireCompression compression) Encode a Message to an OutputStream using the negotiated compression mode.Encode a message, ensuring the message type is supported in the negotiated version. -
Uses of Message in com.loomcache.server
Methods in com.loomcache.server that return MessageModifier and TypeMethodDescription@Nullable MessageCacheNode.handleMessage(Message message, ConnectionContext sender) Methods in com.loomcache.server with parameters of type MessageModifier and TypeMethodDescription@Nullable MessageCacheNode.handleMessage(Message message, ConnectionContext sender) -
Uses of Message in com.loomcache.server.cluster
Methods in com.loomcache.server.cluster with parameters of type MessageModifier and TypeMethodDescriptionstatic booleanPartitionMigrationManager.isMigrationRecoveryRequest(Message message) -
Uses of Message in com.loomcache.server.consensus
Methods in com.loomcache.server.consensus that return MessageModifier and TypeMethodDescriptionRaftNode.handleAppendEntries(Message msg) Handle incoming AppendEntries RPC (follower side).RaftNode.handleHeartbeat(Message msg) Handle a Raft heartbeat (simplified AppendEntries with no entries).RaftNode.handleInstallSnapshot(Message msg) Handle incoming InstallSnapshot RPC (follower side).RaftNode.handlePreVoteRequest(Message msg) Handle an incoming PreVote request.RaftNode.handleTimeoutNow(Message msg) Handle an incoming TIMEOUT_NOW RPC from the leader.RaftNode.handleVoteRequest(Message msg) Handle an incoming RequestVote RPC.Methods in com.loomcache.server.consensus with parameters of type MessageModifier and TypeMethodDescriptionRaftNode.handleAppendEntries(Message msg) Handle incoming AppendEntries RPC (follower side).voidRaftNode.handleAppendResponse(Message msg) Handle AppendEntries response (leader side).RaftNode.handleHeartbeat(Message msg) Handle a Raft heartbeat (simplified AppendEntries with no entries).RaftNode.handleInstallSnapshot(Message msg) Handle incoming InstallSnapshot RPC (follower side).voidRaftNode.handleInstallSnapshotResponse(Message msg) Handle InstallSnapshot response (leader side).RaftNode.handlePreVoteRequest(Message msg) Handle an incoming PreVote request.voidRaftNode.handlePreVoteResponse(Message msg) Handle an incoming PreVote response.RaftNode.handleTimeoutNow(Message msg) Handle an incoming TIMEOUT_NOW RPC from the leader.RaftNode.handleVoteRequest(Message msg) Handle an incoming RequestVote RPC.voidRaftNode.handleVoteResponse(Message msg) Handle an incoming VoteResponse. -
Uses of Message in com.loomcache.server.handler
Methods in com.loomcache.server.handler that return MessageModifier and TypeMethodDescriptionIdempotencyManager.deduplicate(IdempotencyManager.IdempotencyKey key, Supplier<Message> supplier) Deduplicates a request.IdempotencyManager.deduplicate(IdempotencyManager.IdempotencyKey key, Supplier<Message> supplier, Predicate<Exception> retainPendingOnException) IdempotencyManager.deduplicate(IdempotencyManager.IdempotencyKey key, Supplier<Message> supplier, Predicate<Exception> retainPendingOnException, boolean cpOperation) Handle a BATCH_EXECUTE message.@Nullable MessageHandle a Consistency operation message.Dispatch a CQC_SUBSCRIBE or CQC_UNSUBSCRIBE message from the given peer.@Nullable MessageHandles a single data-structure operation message.@Nullable MessageHandle an executor service operation message.@Nullable MessageHandle a SQL query operation message.@Nullable MessageQueryHandler.handle(Message msg, QueryHandler.SqlCatalogAuthorization sqlCatalogAuthorization) @Nullable MessageHandle a message, applying coalescing for read operations.RequestCoalescer.GroupStats.originalRequest()Returns the value of theoriginalRequestrecord component.@Nullable MessageIdempotencyManager.peekCompleted(IdempotencyManager.IdempotencyKey key) Returns a copy of the live cached response for the key, ornullif no completed response is currently available.IdempotencyManager.CachedResponse.response()Returns the value of theresponserecord component.Methods in com.loomcache.server.handler that return types with arguments of type MessageModifier and TypeMethodDescriptionCompletableFuture<@Nullable Message> RequestCoalescer.coalesce(RequestCoalescer.CoalescingKey key, Supplier<@Nullable Message> supplier) Coalesce a read request or execute it if no group exists.Methods in com.loomcache.server.handler with parameters of type MessageModifier and TypeMethodDescriptionHandle a BATCH_EXECUTE message.@Nullable MessageHandle a Consistency operation message.Dispatch a CQC_SUBSCRIBE or CQC_UNSUBSCRIBE message from the given peer.@Nullable MessageHandles a single data-structure operation message.@Nullable MessageHandle an executor service operation message.@Nullable MessageHandle a SQL query operation message.@Nullable MessageQueryHandler.handle(Message msg, QueryHandler.SqlCatalogAuthorization sqlCatalogAuthorization) @Nullable MessageHandle a message, applying coalescing for read operations.voidIdempotencyManager.recordCompleted(IdempotencyManager.IdempotencyKey key, Message response) Record a completed idempotent response without executing the supplier again.voidIdempotencyManager.recordCompleted(IdempotencyManager.IdempotencyKey key, Message response, boolean cpOperation) QueryHandler.validateMutationAuthorization(Message msg, QueryHandler.SqlCatalogAuthorization sqlCatalogAuthorization) Method parameters in com.loomcache.server.handler with type arguments of type MessageModifier and TypeMethodDescriptionCompletableFuture<@Nullable Message> RequestCoalescer.coalesce(RequestCoalescer.CoalescingKey key, Supplier<@Nullable Message> supplier) Coalesce a read request or execute it if no group exists.IdempotencyManager.deduplicate(IdempotencyManager.IdempotencyKey key, Supplier<Message> supplier) Deduplicates a request.IdempotencyManager.deduplicate(IdempotencyManager.IdempotencyKey key, Supplier<Message> supplier, Predicate<Exception> retainPendingOnException) IdempotencyManager.deduplicate(IdempotencyManager.IdempotencyKey key, Supplier<Message> supplier, Predicate<Exception> retainPendingOnException, boolean cpOperation) Constructors in com.loomcache.server.handler with parameters of type MessageModifierConstructorDescriptionCachedResponse(IdempotencyManager.IdempotencyKey key, Message response, long completedAt, long expiresAt, boolean cpOperation) Creates an instance of aCachedResponserecord class.GroupStats(Message originalRequest, int coalescedCount, long executionTimeNs) Creates an instance of aGroupStatsrecord class. -
Uses of Message in com.loomcache.server.network
Methods in com.loomcache.server.network that return MessageModifier and TypeMethodDescriptionProtocolHelloHandler.handle(Message request, ConnectionContext sender) Handle an incomingPROTOCOL_HELLOrequest.@Nullable MessageMessageHandler.handleMessage(Message message, ConnectionContext sender) Handle an incoming message and optionally return a response.CommandContext.message()Get the message to execute.Methods in com.loomcache.server.network with parameters of type MessageModifier and TypeMethodDescriptionProtocolHelloHandler.handle(Message request, ConnectionContext sender) Handle an incomingPROTOCOL_HELLOrequest.@Nullable MessageMessageHandler.handleMessage(Message message, ConnectionContext sender) Handle an incoming message and optionally return a response.voidSend a message to this peer.booleanTcpServer.sendMessage(String peerId, Message msg) Send a message to a specific connected peer.Constructors in com.loomcache.server.network with parameters of type MessageModifierConstructorDescriptionCommandContext(Message message, ConnectionContext connection) Create a new command context for pipelined execution. -
Uses of Message in com.loomcache.server.observability
Methods in com.loomcache.server.observability with parameters of type MessageModifier and TypeMethodDescription@NonNull SlowOperationDetector.OperationScopeSlowOperationDetector.track(Message message, ConnectionContext connection) @NonNull SlowOperationDetector.OperationScope -
Uses of Message in com.loomcache.server.replication
Methods in com.loomcache.server.replication that return MessageModifier and TypeMethodDescriptionReplicationManager.buildAckResponse(int correlationId, boolean success) Build a REPL_ACK response message.Methods in com.loomcache.server.replication with parameters of type MessageModifier and TypeMethodDescriptionvoidHandle an incoming REPL_ACK message (primary side).@Nullable ReplicationManager.ReplicationDataReplicationManager.parseReplicationData(Message msg) Handle an incoming REPL_SYNC message (backup side). -
Uses of Message in com.loomcache.server.security
Methods in com.loomcache.server.security that return MessageModifier and TypeMethodDescriptionAuthenticationHandler.handleAuth(Message authMsg, ConnectionContext ctx) Handle an AUTH message from a gateway-authenticated client.Methods in com.loomcache.server.security with parameters of type MessageModifier and TypeMethodDescriptionstatic SecurityOperationResultAuthenticationHandler.handleAuth(Message authMsg, ConnectionContext ctx) Handle an AUTH message from a gateway-authenticated client. -
Uses of Message in com.loomcache.server.tracing
Methods in com.loomcache.server.tracing that return MessageModifier and TypeMethodDescriptionTracingInterceptor.MessageHandler.handle(Message message, ConnectionContext connectionContext) TracingInterceptor.intercept(Message message, ConnectionContext connectionContext, TracingInterceptor.MessageHandler handler) Intercept an incoming message and trace it.Methods in com.loomcache.server.tracing with parameters of type MessageModifier and TypeMethodDescriptionTraceContextPropagator.extractFromMessageBody(Message message) Extract trace context from a message body (if stored there).TraceContextPropagator.extractTraceContext(Message message) Extract trace context from an incoming message.TracingInterceptor.MessageHandler.handle(Message message, ConnectionContext connectionContext) static booleanTraceContextPropagator.hasTraceContext(Message message) Check if a message contains trace context.static voidTraceContextPropagator.injectTraceContext(Message message) Inject trace context into a message for transmission to another node.TracingInterceptor.intercept(Message message, ConnectionContext connectionContext, TracingInterceptor.MessageHandler handler) Intercept an incoming message and trace it. -
Uses of Message in com.loomcache.server.transaction
Methods in com.loomcache.server.transaction that return MessageModifier and TypeMethodDescriptionDispatch an incoming TX_* message.Methods in com.loomcache.server.transaction with parameters of type MessageModifier and TypeMethodDescriptionDispatch an incoming TX_* message.Constructor parameters in com.loomcache.server.transaction with type arguments of type MessageModifierConstructorDescriptionTransactionHandler(TransactionManager transactionManager, int instanceNumber, @Nullable BiFunction<Message, MessageType, @Nullable Message> leaderRedirectSupplier) TransactionHandler(TransactionManager transactionManager, int instanceNumber, @Nullable BiFunction<Message, MessageType, @Nullable Message> leaderRedirectSupplier) -
Uses of Message in com.loomcache.server.transaction.twopc
Methods in com.loomcache.server.transaction.twopc with parameters of type Message -
Uses of Message in com.loomcache.server.wan
Methods in com.loomcache.server.wan that return MessageMethods in com.loomcache.server.wan with parameters of type Message