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:
clientId
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:
cause
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java