ClientEntity Class
- java.
lang. Object - com.
microsoft. azure. servicebus. primitives. ClientEntity
- com.
public class ClientEntity
Contract for all client entities with Open-Close/Abort state m/c
main-purpose: closeAll related entities
Internal-class
Constructor Summary
Constructor | Description | |
---|---|---|
ClientEntity(final String clientId) |
Method Summary
Modifier and Type | Method and Description |
---|---|
final void | close() |
final CompletableFuture<Void> | closeAsync() |
void | finalize() |
String | getClientId() |
boolean | getIsClosed() |
boolean | getIsClosingOrClosed() |
abstract CompletableFuture<Void> | onClose() |
final void | setClosed() |
final void | throwIfClosed(Throwable cause) |
Constructor Details
ClientEntity
protected ClientEntity(final String clientId)
Parameters:
Method Details
close
public final void close()
closeAsync
public final CompletableFuture
finalize
protected void finalize()
getClientId
public String getClientId()
getIsClosed
protected boolean getIsClosed()
getIsClosingOrClosed
protected boolean getIsClosingOrClosed()
onClose
protected abstract CompletableFuture
setClosed
protected final void setClosed()
throwIfClosed
protected final void throwIfClosed(Throwable cause)
Parameters:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for