Gets the default length of time in milliseconds from its dispatch time that a produced message should be retained by the message system.

Namespace:  Kaazing.JMS
Assembly:  Kaazing.JMS (in Kaazing.JMS.dll)

Syntax

Visual Basic
Property TimeToLive As Long
	Get
	Set
C#
long TimeToLive { get; set; }
Visual C++
property long long TimeToLive {
	long long get ();
	void set (long long value);
}

Return Value

the message time to live in milliseconds; zero is unlimited

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to get the time to live due to some internal error.

See Also

IMessageProducer..::..TimeToLive