All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pipservices4.messaging.queues.LockedMessage Maven / Gradle / Ivy

The newest version!
package org.pipservices4.messaging.queues;

import java.time.ZonedDateTime;

/**
 * Data object used to store and lock incoming messages
 * in {@link MemoryMessageQueue}.
 *
 * @see MemoryMessageQueue
 */
public class LockedMessage {
    /**
     * The incoming message.
     */
    public MessageEnvelope message;

    /**
     * The expiration time for the message lock.
     * If it is null then the message is not locked.
     */
    public ZonedDateTime expirationTime;

    /**
     * The lock timeout in milliseconds.
     */
    public Long timeout;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy