ClientEntity Class

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

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 closeAsync()

finalize

protected void finalize()

getClientId

public String getClientId()

getIsClosed

protected boolean getIsClosed()

getIsClosingOrClosed

protected boolean getIsClosingOrClosed()

onClose

protected abstract CompletableFuture onClose()

setClosed

protected final void setClosed()

throwIfClosed

protected final void throwIfClosed(Throwable cause)

Parameters:

cause

Applies to