C# Class Microsoft.WindowsAzure.StorageClient.CloudQueue

Show file Open project: richorama/azure-sdk-for-mono Class Usage Examples

Private Properties

Property Type Description
AddMessageImpl System.Collections.Generic.IEnumerable
BeginGetMessagesInternal IAsyncResult
ClearMessagesImpl System.Collections.Generic.IEnumerable
CloudQueue System
CloudQueue System
CloudQueue System
CloudQueue System
CreateIfNotExistImpl System.Collections.Generic.IEnumerable
CreateImpl System.Collections.Generic.IEnumerable
DeleteImpl System.Collections.Generic.IEnumerable
DeleteMessageImpl System.Collections.Generic.IEnumerable
EndAddMessage void
EndClear void
EndCreate void
EndCreateIfNotExist bool
EndDelete void
EndDeleteMessage void
EndExists bool
EndFetchAttributes void
EndGetMessage Microsoft.WindowsAzure.StorageClient.CloudQueueMessage
EndGetMessages IEnumerable
EndPeekMessage Microsoft.WindowsAzure.StorageClient.CloudQueueMessage
EndPeekMessages IEnumerable
EndSetMetadata void
EndUpdateMessage void
ExistsImpl System.Collections.Generic.IEnumerable
FetchAttributesImpl System.Collections.Generic.IEnumerable
GenerateMessageContentsForRequest string
GetIndividualMessageAddress System.Uri
GetMessageInternal Microsoft.WindowsAzure.StorageClient.CloudQueueMessage
GetMessagesImpl System.Collections.Generic.IEnumerable
GetMessagesInternal IEnumerable
GetPropertiesAndMetadataFromResponse void
MaterializeAndParseResponse IEnumerable
PeekMessagesImpl System.Collections.Generic.IEnumerable
SelectGetMessageResponse Microsoft.WindowsAzure.StorageClient.CloudQueueMessage
SelectPeekMessageResponse Microsoft.WindowsAzure.StorageClient.CloudQueueMessage
SetMetadataImpl System.Collections.Generic.IEnumerable
UpdateMessageImpl System.Collections.Generic.IEnumerable

Public Methods

Method Description
AddMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message ) : void

Adds a message to the queue.

AddMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan timeToLive ) : void

Adds a message to the queue.

AddMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan timeToLive, System.TimeSpan initialVisibilityDelay ) : void

Adds a message to the queue.

BeginAddMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to add a message to the queue.

BeginAddMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan timeToLive, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to add a message to the queue.

BeginAddMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan timeToLive, System.TimeSpan initialVisibilityDelay, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to add a message to the queue.

BeginClear ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to clear all messages from the queue.

BeginCreate ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to create a queue.

BeginCreateIfNotExist ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to create the queue if it does not exist.

BeginDelete ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to delete the queue.

BeginDeleteMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to delete a message.

BeginDeleteMessage ( string messageId, string popReceipt, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to delete a message.

BeginExists ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to determine whether the queue exists.

BeginFetchAttributes ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to fetch the queue's attributes.

BeginGetMessage ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to get a single message from the queue.

BeginGetMessage ( System.TimeSpan visibilityTimeout, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to get a single message from the queue.

BeginGetMessages ( int messageCount, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to get messages from the queue.

BeginGetMessages ( int messageCount, System.TimeSpan visibilityTimeout, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to get messages from the queue.

BeginPeekMessage ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to peek a message from the queue.

BeginPeekMessages ( int messageCount, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to peek a set of messages from the queue.

BeginSetMetadata ( AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to set the queue's metadata.

BeginUpdateMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan visibilityTimeout, MessageUpdateFields updateFields, AsyncCallback callback, object state ) : IAsyncResult

Begins an asynchronous operation to update the visibility timeout and optionally the content of a message.

Clear ( ) : void

Clears all messages from the queue.

CloudQueue ( string address, StorageCredentials credentials ) : System

Initializes a new instance of the CloudQueue class.

Create ( ) : void

Creates a queue.

CreateIfNotExist ( ) : bool

Creates the queue if it does not exist.

Delete ( ) : void

Deletes the queue.

DeleteMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message ) : void

Deletes a message.

DeleteMessage ( string messageId, string popReceipt ) : void

Deletes a message.

Exists ( ) : bool

Determines if the queue exists.

FetchAttributes ( ) : void

Fetches the queue's attributes.

GetMessage ( ) : Microsoft.WindowsAzure.StorageClient.CloudQueueMessage

Gets a single message from the queue.

GetMessage ( System.TimeSpan visibilityTimeout ) : Microsoft.WindowsAzure.StorageClient.CloudQueueMessage

Gets a single message from the queue.

GetMessages ( int messageCount ) : IEnumerable

Gets a list of messages from the queue.

GetMessages ( int messageCount, System.TimeSpan visibilityTimeout ) : IEnumerable

Gets a list of messages from the queue.

PeekMessage ( ) : Microsoft.WindowsAzure.StorageClient.CloudQueueMessage

Peeks a message from the queue.

PeekMessages ( int messageCount ) : IEnumerable

Peeks a set of messages from the queue.

RetrieveApproximateMessageCount ( ) : int

Retrieves the approximate message count for the queue. This method fetches the value from the server and updates the ApproximateMessageCount property as well.

SetMetadata ( ) : void

Sets the queue's metadata.

UpdateMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan visibilityTimeout, MessageUpdateFields updateFields ) : void

Updates the visibility timeout and optionally the content of a message.

Private Methods

Method Description
AddMessageImpl ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan timeToLive, System.TimeSpan initialVisibilityDelay ) : System.Collections.Generic.IEnumerable

Generates a task sequence for adding a message to the queue.

BeginGetMessagesInternal ( int numberOfMesages, System.TimeSpan visibilityTimeout, AsyncCallback callback, object state ) : IAsyncResult

Begins the get messages internal.

ClearMessagesImpl ( ) : System.Collections.Generic.IEnumerable

Clears the messages impl.

CloudQueue ( QueueAttributes attributes, CloudQueueClient client ) : System

Initializes a new instance of the CloudQueue class.

CloudQueue ( Uri queueAddress, CloudQueueClient client ) : System

Initializes a new instance of the CloudQueue class.

CloudQueue ( bool usePathStyleUris, string address, StorageCredentials credentials ) : System

Initializes a new instance of the CloudQueue class.

CloudQueue ( string address, StorageCredentials credentials, bool usePathStyleUris ) : System

Initializes a new instance of the CloudQueue class.

CreateIfNotExistImpl ( Action setResult ) : System.Collections.Generic.IEnumerable

Creates if not exist impl.

CreateImpl ( ) : System.Collections.Generic.IEnumerable

Creates the impl.

DeleteImpl ( ) : System.Collections.Generic.IEnumerable

Deletes the impl.

DeleteMessageImpl ( string messageId, string popReceipt ) : System.Collections.Generic.IEnumerable

Deletes the message impl.

EndAddMessage ( IAsyncResult asyncResult ) : void
EndClear ( IAsyncResult asyncResult ) : void
EndCreate ( IAsyncResult asyncResult ) : void
EndCreateIfNotExist ( IAsyncResult asyncResult ) : bool
EndDelete ( IAsyncResult asyncResult ) : void
EndDeleteMessage ( IAsyncResult asyncResult ) : void
EndExists ( IAsyncResult asyncResult ) : bool
EndFetchAttributes ( IAsyncResult asyncResult ) : void
EndGetMessage ( IAsyncResult asyncResult ) : Microsoft.WindowsAzure.StorageClient.CloudQueueMessage
EndGetMessages ( IAsyncResult asyncResult ) : IEnumerable
EndPeekMessage ( IAsyncResult asyncResult ) : Microsoft.WindowsAzure.StorageClient.CloudQueueMessage
EndPeekMessages ( IAsyncResult asyncResult ) : IEnumerable
EndSetMetadata ( IAsyncResult asyncResult ) : void
EndUpdateMessage ( IAsyncResult asyncResult ) : void
ExistsImpl ( Action setResult ) : System.Collections.Generic.IEnumerable

Existses the impl.

FetchAttributesImpl ( ) : System.Collections.Generic.IEnumerable

Fetches the metadata and properties impl.

GenerateMessageContentsForRequest ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message ) : string

Generates a suitable string for representing the content of a message in the body of a web request.

GetIndividualMessageAddress ( string messageId ) : Uri

Gets the individual message address.

GetMessageInternal ( System.TimeSpan visibilityTimeout ) : Microsoft.WindowsAzure.StorageClient.CloudQueueMessage

Gets the message internal.

GetMessagesImpl ( int numberOfMessages, System.TimeSpan visibilityTimeout, Action setResult ) : System.Collections.Generic.IEnumerable

Gets the messages impl.

GetMessagesInternal ( int numberOfMessages, System.TimeSpan visibilityTimeout ) : IEnumerable

Gets the messages internal.

GetPropertiesAndMetadataFromResponse ( HttpWebResponse webResponse ) : void

Gets the properties and metadata from response.

MaterializeAndParseResponse ( IEnumerable protocolList, CloudQueueMessage>.Func responseProjector ) : IEnumerable

Materialize results so that we can close the response object.

PeekMessagesImpl ( int numberOfMessages, Action setResult ) : System.Collections.Generic.IEnumerable

Peeks the messages impl.

SelectGetMessageResponse ( QueueMessage protocolMessage ) : Microsoft.WindowsAzure.StorageClient.CloudQueueMessage

Selects the get message response.

SelectPeekMessageResponse ( QueueMessage protocolMessage ) : Microsoft.WindowsAzure.StorageClient.CloudQueueMessage

Selects the peek message response.

SetMetadataImpl ( ) : System.Collections.Generic.IEnumerable

Sets the metadata impl.

UpdateMessageImpl ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan visibilityTimeout, MessageUpdateFields updateFlags ) : System.Collections.Generic.IEnumerable

Generates a task sequence for updating a message in the queue.

Method Details

AddMessage() public method

Adds a message to the queue.
public AddMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message ) : void
message Microsoft.WindowsAzure.StorageClient.CloudQueueMessage The message to add.
return void

AddMessage() public method

Adds a message to the queue.
public AddMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan timeToLive ) : void
message Microsoft.WindowsAzure.StorageClient.CloudQueueMessage The message to add.
timeToLive System.TimeSpan The maximum time to allow the message to be in the queue.
return void

AddMessage() public method

Adds a message to the queue.
public AddMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan timeToLive, System.TimeSpan initialVisibilityDelay ) : void
message Microsoft.WindowsAzure.StorageClient.CloudQueueMessage The message to add.
timeToLive System.TimeSpan The maximum time to allow the message to be in the queue, or null.
initialVisibilityDelay System.TimeSpan The length of time from now during which the message will be invisible. /// If null then the message will be visible immediately.
return void

BeginAddMessage() public method

Begins an asynchronous operation to add a message to the queue.
public BeginAddMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, AsyncCallback callback, object state ) : IAsyncResult
message Microsoft.WindowsAzure.StorageClient.CloudQueueMessage The message to add.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginAddMessage() public method

Begins an asynchronous operation to add a message to the queue.
public BeginAddMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan timeToLive, AsyncCallback callback, object state ) : IAsyncResult
message Microsoft.WindowsAzure.StorageClient.CloudQueueMessage The message to add.
timeToLive System.TimeSpan The maximum time to allow the message to be in the queue.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginAddMessage() public method

Begins an asynchronous operation to add a message to the queue.
public BeginAddMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan timeToLive, System.TimeSpan initialVisibilityDelay, AsyncCallback callback, object state ) : IAsyncResult
message Microsoft.WindowsAzure.StorageClient.CloudQueueMessage The message to add.
timeToLive System.TimeSpan The maximum time to allow the message to be in the queue, or null.
initialVisibilityDelay System.TimeSpan The length of time from now during which the message will be invisible. /// If null then the message will be visible immediately.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginClear() public method

Begins an asynchronous operation to clear all messages from the queue.
public BeginClear ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginCreate() public method

Begins an asynchronous operation to create a queue.
public BeginCreate ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginCreateIfNotExist() public method

Begins an asynchronous operation to create the queue if it does not exist.
public BeginCreateIfNotExist ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginDelete() public method

Begins an asynchronous operation to delete the queue.
public BeginDelete ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginDeleteMessage() public method

Begins an asynchronous operation to delete a message.
public BeginDeleteMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, AsyncCallback callback, object state ) : IAsyncResult
message Microsoft.WindowsAzure.StorageClient.CloudQueueMessage A message.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginDeleteMessage() public method

Begins an asynchronous operation to delete a message.
public BeginDeleteMessage ( string messageId, string popReceipt, AsyncCallback callback, object state ) : IAsyncResult
messageId string The message ID.
popReceipt string The pop receipt value.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginExists() public method

Begins an asynchronous operation to determine whether the queue exists.
public BeginExists ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginFetchAttributes() public method

Begins an asynchronous operation to fetch the queue's attributes.
public BeginFetchAttributes ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginGetMessage() public method

Begins an asynchronous operation to get a single message from the queue.
public BeginGetMessage ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginGetMessage() public method

Begins an asynchronous operation to get a single message from the queue.
public BeginGetMessage ( System.TimeSpan visibilityTimeout, AsyncCallback callback, object state ) : IAsyncResult
visibilityTimeout System.TimeSpan The visibility timeout interval.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginGetMessages() public method

Begins an asynchronous operation to get messages from the queue.
public BeginGetMessages ( int messageCount, AsyncCallback callback, object state ) : IAsyncResult
messageCount int The number of messages to retrieve.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginGetMessages() public method

Begins an asynchronous operation to get messages from the queue.
public BeginGetMessages ( int messageCount, System.TimeSpan visibilityTimeout, AsyncCallback callback, object state ) : IAsyncResult
messageCount int The number of messages to retrieve.
visibilityTimeout System.TimeSpan The visibility timeout interval.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginPeekMessage() public method

Begins an asynchronous operation to peek a message from the queue.
public BeginPeekMessage ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginPeekMessages() public method

Begins an asynchronous operation to peek a set of messages from the queue.
public BeginPeekMessages ( int messageCount, AsyncCallback callback, object state ) : IAsyncResult
messageCount int The number of messages to retrieve.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginSetMetadata() public method

Begins an asynchronous operation to set the queue's metadata.
public BeginSetMetadata ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

BeginUpdateMessage() public method

Begins an asynchronous operation to update the visibility timeout and optionally the content of a message.
public BeginUpdateMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan visibilityTimeout, MessageUpdateFields updateFields, AsyncCallback callback, object state ) : IAsyncResult
message Microsoft.WindowsAzure.StorageClient.CloudQueueMessage The message to update.
visibilityTimeout System.TimeSpan The length of time from now during which the message will be invisible.
updateFields MessageUpdateFields Flags indicating which parts of the message are to be updated. This must include the Visibility flag.
callback AsyncCallback The callback delegate that will receive notification when the asynchronous operation completes.
state object A user-defined object that will be passed to the callback delegate.
return IAsyncResult

Clear() public method

Clears all messages from the queue.
public Clear ( ) : void
return void

CloudQueue() public method

Initializes a new instance of the CloudQueue class.
public CloudQueue ( string address, StorageCredentials credentials ) : System
address string The absolute URI to the queue.
credentials StorageCredentials The account credentials.
return System

Create() public method

Creates a queue.
public Create ( ) : void
return void

CreateIfNotExist() public method

Creates the queue if it does not exist.
public CreateIfNotExist ( ) : bool
return bool

Delete() public method

Deletes the queue.
public Delete ( ) : void
return void

DeleteMessage() public method

Deletes a message.
public DeleteMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message ) : void
message Microsoft.WindowsAzure.StorageClient.CloudQueueMessage A message.
return void

DeleteMessage() public method

Deletes a message.
public DeleteMessage ( string messageId, string popReceipt ) : void
messageId string The message ID.
popReceipt string The pop receipt value.
return void

Exists() public method

Determines if the queue exists.
public Exists ( ) : bool
return bool

FetchAttributes() public method

Fetches the queue's attributes.
public FetchAttributes ( ) : void
return void

GetMessage() public method

Gets a single message from the queue.
public GetMessage ( ) : Microsoft.WindowsAzure.StorageClient.CloudQueueMessage
return Microsoft.WindowsAzure.StorageClient.CloudQueueMessage

GetMessage() public method

Gets a single message from the queue.
public GetMessage ( System.TimeSpan visibilityTimeout ) : Microsoft.WindowsAzure.StorageClient.CloudQueueMessage
visibilityTimeout System.TimeSpan The visibility timeout interval.
return Microsoft.WindowsAzure.StorageClient.CloudQueueMessage

GetMessages() public method

Gets a list of messages from the queue.
public GetMessages ( int messageCount ) : IEnumerable
messageCount int The number of messages to retrieve.
return IEnumerable

GetMessages() public method

Gets a list of messages from the queue.
public GetMessages ( int messageCount, System.TimeSpan visibilityTimeout ) : IEnumerable
messageCount int The number of messages to retrieve.
visibilityTimeout System.TimeSpan The visibility timeout interval.
return IEnumerable

PeekMessage() public method

Peeks a message from the queue.
public PeekMessage ( ) : Microsoft.WindowsAzure.StorageClient.CloudQueueMessage
return Microsoft.WindowsAzure.StorageClient.CloudQueueMessage

PeekMessages() public method

Peeks a set of messages from the queue.
public PeekMessages ( int messageCount ) : IEnumerable
messageCount int The number of messages to retrieve.
return IEnumerable

RetrieveApproximateMessageCount() public method

Retrieves the approximate message count for the queue. This method fetches the value from the server and updates the ApproximateMessageCount property as well.
public RetrieveApproximateMessageCount ( ) : int
return int

SetMetadata() public method

Sets the queue's metadata.
public SetMetadata ( ) : void
return void

UpdateMessage() public method

Updates the visibility timeout and optionally the content of a message.
public UpdateMessage ( Microsoft.WindowsAzure.StorageClient.CloudQueueMessage message, System.TimeSpan visibilityTimeout, MessageUpdateFields updateFields ) : void
message Microsoft.WindowsAzure.StorageClient.CloudQueueMessage The message to update.
visibilityTimeout System.TimeSpan The length of time from now during which the message will be invisible.
updateFields MessageUpdateFields Flags indicating which parts of the message are to be updated. This must include the Visibility flag.
return void