ClientEntity Class

  • java.lang.Object
    • com.microsoft.azure.servicebus.primitives.ClientEntity

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 CompletableFuture<Void> closeAsync()
protected void finalize()
String getClientId()
protected boolean getIsClosed()
protected boolean getIsClosingOrClosed()
protected abstract CompletableFuture<Void> 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

public final void close()

Throws:

closeAsync

public final CompletableFuture closeAsync()

finalize

protected void finalize()

Overrides:

ClientEntity.finalize()

Throws:

getClientId

public String getClientId()

getIsClosed

protected boolean getIsClosed()

getIsClosingOrClosed

protected boolean getIsClosingOrClosed()

onClose

protected abstract CompletableFuture onClose()

setClosed

protected final void setClosed()

setClosing

protected final void setClosing()

throwIfClosed

protected final void throwIfClosed(Throwable cause)

Parameters:

cause

Applies to