azure-docs-sdk-java/legacy/docs-ref-autogen/com.microsoft.azure.service...

80 строки
6.8 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.azure.servicebus.IMessageSessionEntity"
fullName: "com.microsoft.azure.servicebus.IMessageSessionEntity"
name: "IMessageSessionEntity"
nameWithType: "IMessageSessionEntity"
summary: "Represents a session full client entity."
syntax: "public interface **IMessageSessionEntity**"
methods:
- uid: "com.microsoft.azure.servicebus.IMessageSessionEntity.getMessageSessions()"
fullName: "com.microsoft.azure.servicebus.IMessageSessionEntity.getMessageSessions()"
name: "getMessageSessions()"
nameWithType: "IMessageSessionEntity.getMessageSessions()"
summary: "Gets the message sessions, enabling you to browse sessions on queues."
modifiers:
- "abstract"
syntax: "public abstract Collection<IMessageSession> getMessageSessions()"
exceptions:
- description: "if the current thread was interrupted while waiting."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html\">InterruptedException</a>"
- description: "if the current thread was interrupted while waiting."
type: "<xref href=\"com.microsoft.azure.servicebus.primitives.ServiceBusException?alt=com.microsoft.azure.servicebus.primitives.ServiceBusException&text=ServiceBusException\" data-throw-if-not-resolved=\"False\" />"
desc: "Gets the message sessions, enabling you to browse sessions on queues. Only sessions with active messages in the queue are returned. The sessions on the deadletter queue or sessions having a SessionState as 'active' and no messages are not returned with this call."
returns:
description: "A collection of sessions."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html\">Collection</a>&lt;<xref href=\"com.microsoft.azure.servicebus.IMessageSession?alt=com.microsoft.azure.servicebus.IMessageSession&text=IMessageSession\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.microsoft.azure.servicebus.IMessageSessionEntity.getMessageSessions(java.time.Instant)"
fullName: "com.microsoft.azure.servicebus.IMessageSessionEntity.getMessageSessions(Instant lastUpdatedTime)"
name: "getMessageSessions(Instant lastUpdatedTime)"
nameWithType: "IMessageSessionEntity.getMessageSessions(Instant lastUpdatedTime)"
summary: "Retrieves all message sessions whose session state was updated since last<wbr>Updated<wbr>Time."
modifiers:
- "abstract"
parameters:
- description: "The time the session was last updated."
name: "lastUpdatedTime"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html\">Instant</a>"
syntax: "public abstract Collection<IMessageSession> getMessageSessions(Instant lastUpdatedTime)"
exceptions:
- description: "if the current thread was interrupted while waiting."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/InterruptedException.html\">InterruptedException</a>"
- description: "if the current thread was interrupted while waiting."
type: "<xref href=\"com.microsoft.azure.servicebus.primitives.ServiceBusException?alt=com.microsoft.azure.servicebus.primitives.ServiceBusException&text=ServiceBusException\" data-throw-if-not-resolved=\"False\" />"
desc: "Retrieves all message sessions whose session state was updated since lastUpdatedTime. Only sessions with active messages in the queue are returned. The sessions on the deadletter queue or sessions having a SessionState as 'active' and no messages are not returned with this call."
returns:
description: "A collection of sessions."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html\">Collection</a>&lt;<xref href=\"com.microsoft.azure.servicebus.IMessageSession?alt=com.microsoft.azure.servicebus.IMessageSession&text=IMessageSession\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.microsoft.azure.servicebus.IMessageSessionEntity.getMessageSessionsAsync()"
fullName: "com.microsoft.azure.servicebus.IMessageSessionEntity.getMessageSessionsAsync()"
name: "getMessageSessionsAsync()"
nameWithType: "IMessageSessionEntity.getMessageSessionsAsync()"
summary: "Asynchronously gets the message sessions, enabling you to browse sessions on queues."
modifiers:
- "abstract"
syntax: "public abstract CompletableFuture<Collection<IMessageSession>> getMessageSessionsAsync()"
desc: "Asynchronously gets the message sessions, enabling you to browse sessions on queues. Only sessions with active messages in the queue are returned. The sessions on the deadletter queue or sessions having a SessionState as 'active' and no messages are not returned with this call."
returns:
description: "a CompletableFuture representing the pending operation to get sessions."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html\">CompletableFuture</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html\">Collection</a>&lt;<xref href=\"com.microsoft.azure.servicebus.IMessageSession?alt=com.microsoft.azure.servicebus.IMessageSession&text=IMessageSession\" data-throw-if-not-resolved=\"False\" />&gt;&gt;"
- uid: "com.microsoft.azure.servicebus.IMessageSessionEntity.getMessageSessionsAsync(java.time.Instant)"
fullName: "com.microsoft.azure.servicebus.IMessageSessionEntity.getMessageSessionsAsync(Instant lastUpdatedTime)"
name: "getMessageSessionsAsync(Instant lastUpdatedTime)"
nameWithType: "IMessageSessionEntity.getMessageSessionsAsync(Instant lastUpdatedTime)"
summary: "Asynchronously retrieves all message sessions whose session state was updated since last<wbr>Updated<wbr>Time."
modifiers:
- "abstract"
parameters:
- description: "The time the session was last updated."
name: "lastUpdatedTime"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/time/Instant.html\">Instant</a>"
syntax: "public abstract CompletableFuture<Collection<IMessageSession>> getMessageSessionsAsync(Instant lastUpdatedTime)"
desc: "Asynchronously retrieves all message sessions whose session state was updated since lastUpdatedTime. Only sessions with active messages in the queue are returned. The sessions on the deadletter queue or sessions having a SessionState as 'active' and no messages are not returned with this call."
returns:
description: "a CompletableFuture representing the pending operation to get sessions."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html\">CompletableFuture</a>&lt;<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html\">Collection</a>&lt;<xref href=\"com.microsoft.azure.servicebus.IMessageSession?alt=com.microsoft.azure.servicebus.IMessageSession&text=IMessageSession\" data-throw-if-not-resolved=\"False\" />&gt;&gt;"
type: "interface"
desc: "Represents a session full client entity."
metadata: {}
package: "com.microsoft.azure.servicebus"
artifact: com.microsoft.azure:azure-servicebus:3.6.7