Class Message
Message published on a topic.
Inheritance
System.Object
Message
Namespace:
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
public class Message : object, IMessage
Constructors
Message(Object, Nullable<TimeSpan>)
Initializes an instance of Message.
Declaration
public Message(object payload, TimeSpan? timeSpan = null)
Parameters
Type | Name | Description |
---|---|---|
System.Object | payload | Payload of message. |
System.Nullable<TimeSpan> | timeSpan | Expiry time of message. |
Properties
CreationTime
Creation time of message.
Declaration
public DateTime CreationTime { get; }
Property Value
Type | Description |
---|---|
DateTime |
Implements
ExpirationTime
Expiration time provided by user, i.e. message will be expired if no subscriber exists.
Declaration
public TimeSpan? ExpirationTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<TimeSpan> |
Implements
MessageId
Unique id of message.
Declaration
public string MessageId { get; }
Property Value
Type | Description |
---|---|
System.String |
Implements
NoExpiration
Default expiry time.
Declaration
public static TimeSpan NoExpiration { get; }
Property Value
Type | Description |
---|---|
TimeSpan |
Payload
Payload of message.
Declaration
public object Payload { get; }
Property Value
Type | Description |
---|---|
System.Object |