Class Message

    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        define serialVersionUID for interoperability
        See Also:
        Constant Field Values
      • logger

        private static final Logger logger
        logger
      • DEBUG

        private static final boolean DEBUG
      • ENCRYPT_BODY

        private static final boolean ENCRYPT_BODY
      • CRYPTO_ALGO

        private static final String CRYPTO_ALGO
      • CRYPTO_PASSWORD

        private static final String CRYPTO_PASSWORD
      • CRYPTO_PASSWORD_MIN_LENGTH

        private static final int CRYPTO_PASSWORD_MIN_LENGTH
        See Also:
        Constant Field Values
      • CRYPTO_SALT

        private static final String CRYPTO_SALT
      • CRYPTO_SALT_MIN_LENGTH

        private static final int CRYPTO_SALT_MIN_LENGTH
        See Also:
        Constant Field Values
      • CRYPTO_NONCE

        private static final String CRYPTO_NONCE
      • CRYPTO_DFLT_ITERATION_COUNT

        private static final int CRYPTO_DFLT_ITERATION_COUNT
        See Also:
        Constant Field Values
      • CRYPTO_ITERATION_COUNT

        private static final int CRYPTO_ITERATION_COUNT
      • CRYPTO_DFLT_KEY_LENGTH

        private static final int CRYPTO_DFLT_KEY_LENGTH
        See Also:
        Constant Field Values
      • CRYPTO_KEY_LENGTH

        private static final int CRYPTO_KEY_LENGTH
      • crypto

        private static Crypto crypto
        Crypto module needed to encrypt/decrypt messages. This module is only use in agent reaction (engine thread) so we can define a unique static instance.
      • order

        public transient long order
        Arrival position of this message on its queue or proxy.
      • acksCounter

        public transient int acksCounter
        The number of acknowledgements a message still expects from its subscribers before having been fully consumed by them (field used by JMS proxies). Be careful, this field is not saved but set to 0 during message loading then calculated during the proxy initialization.
      • durableAcksCounter

        public transient int durableAcksCounter
        The number of acknowledgements a message still expects from its durable subscribers before having been fully consumed by them (field used by JMS proxies). Be careful, this field is not saved but set to 0 during message loading then calculated during the proxy initialization.
      • msg

        private transient Message msg
        Reference to the shared message. Should not be used directly, rather use getMsg so the message is restored from disk if necessary (currently not used)
      • useLoadALL

        private static final boolean useLoadALL
        Defines if the queue restoration at startup must use the loadAll transaction mechanism when it is implemented.

        Default value is false.

        This property can be fixed either from java launching command, or in a3servers.xml configuration file.

      • bodySoftRef

        private transient SoftReference<byte[]> bodySoftRef
        SoftReference to the body of the MOM message.
      • soft

        private transient boolean soft
        true if soft reference can be used for the message.
      • globalUseSoftRef

        private static final boolean globalUseSoftRef
        Defines if the swapping mechanism is globally activated for messages in this server.

        Default value is false.

        Note: the message swapping can be finely configured using the JMS_JORAM_SWAPALLOWED property of the JMS message.

        This property can be fixed either from java launching command, or in a3servers.xml configuration file.

      • txname

        transient String txname
        Name used to store the message
      • encrypted

        transient byte[] encrypted
    • Constructor Detail

      • Message

        public Message()
        Empty constructor.
      • Message

        public Message​(Message msg)
        Constructs a Message instance.