ClientEntity Class
- java.
lang. Object - com.
microsoft. azure. servicebus. primitives. ClientEntity
- com.
public abstract class ClientEntity
Contract for all client entities with Open-Close/Abort state m/c
main-purpose: closeAll related entities
Internal-class
Constructor Summary
Modifier | Constructor | Description | |
---|---|---|---|
protected | ClientEntity(String clientId) |
Method Summary
Modifier and Type | Method and Description |
---|---|
final void | close() |
final
Completable |
closeAsync() |
protected void | finalize() |
String | getClientId() |
protected boolean | getIsClosed() |
protected boolean | getIsClosingOrClosed() |
protected abstract
Completable |
onClose() |
protected final void | setClosed() |
protected final void | setClosing() |
protected final void | throwIfClosed(Throwable cause) |
Methods inherited from java.lang.Object
Constructor Details
ClientEntity
protected ClientEntity(String clientId)
Parameters:
clientId
Method Details
close
closeAsync
public final CompletableFuture
finalize
getClientId
public String getClientId()
getIsClosed
protected boolean getIsClosed()
getIsClosingOrClosed
protected boolean getIsClosingOrClosed()
onClose
protected abstract CompletableFuture
setClosed
protected final void setClosed()
setClosing
protected final void setClosing()
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