IMessageSessionEntity Interface

public interface IMessageSessionEntity

Represents a session full client entity.

Method Summary

Modifier and Type Method and Description
Collection<IMessageSession> getMessageSessions()

Gets the message sessions, enabling you to browse sessions on queues.

Collection<IMessageSession> getMessageSessions(Instant lastUpdatedTime)

Retrieves all message sessions whose session state was updated since lastUpdatedTime.

CompletableFuture<Collection<IMessageSession>> getMessageSessionsAsync()

Asynchronously gets the message sessions, enabling you to browse sessions on queues.

CompletableFuture<Collection<IMessageSession>> getMessageSessionsAsync(Instant lastUpdatedTime)

Asynchronously retrieves all message sessions whose session state was updated since lastUpdatedTime.

Method Details

getMessageSessions

public Collection getMessageSessions()

Gets the message sessions, enabling you to browse sessions on queues.

Returns:

A collection of sessions.

Throws:

InterruptedException - if the current thread was interrupted while waiting.
ServiceBusException - if get sessions failed.

getMessageSessions

public Collection getMessageSessions(Instant lastUpdatedTime)

Retrieves all message sessions whose session state was updated since lastUpdatedTime.

Parameters:

lastUpdatedTime - The time the session was last updated.

Returns:

A collection of sessions.

Throws:

InterruptedException - if the current thread was interrupted while waiting.
ServiceBusException - if get sessions failed.

getMessageSessionsAsync

public CompletableFuture> getMessageSessionsAsync()

Asynchronously gets the message sessions, enabling you to browse sessions on queues.

Returns:

a CompletableFuture representing the pending operation to get sessions.

getMessageSessionsAsync

public CompletableFuture> getMessageSessionsAsync(Instant lastUpdatedTime)

Asynchronously retrieves all message sessions whose session state was updated since lastUpdatedTime.

Parameters:

lastUpdatedTime - The time the session was last updated.

Returns:

a CompletableFuture representing the pending operation to get sessions.

Applies to