### 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 getMessageSessions()" exceptions: - description: "if the current thread was interrupted while waiting." type: "InterruptedException" - description: "if the current thread was interrupted while waiting." type: "" 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: "Collection<>" - 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 lastUpdatedTime." modifiers: - "abstract" parameters: - description: "The time the session was last updated." name: "lastUpdatedTime" type: "Instant" syntax: "public abstract Collection getMessageSessions(Instant lastUpdatedTime)" exceptions: - description: "if the current thread was interrupted while waiting." type: "InterruptedException" - description: "if the current thread was interrupted while waiting." type: "" 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: "Collection<>" - 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> 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: "CompletableFuture<Collection<>>" - 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 lastUpdatedTime." modifiers: - "abstract" parameters: - description: "The time the session was last updated." name: "lastUpdatedTime" type: "Instant" syntax: "public abstract CompletableFuture> 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: "CompletableFuture<Collection<>>" type: "interface" desc: "Represents a session full client entity." metadata: {} package: "com.microsoft.azure.servicebus" artifact: com.microsoft.azure:azure-servicebus:3.6.7