Package com.azure.core.amqp
Class AmqpShutdownSignal
java.lang.Object
com.azure.core.amqp.AmqpShutdownSignal
Represents a signal that caused the AMQP connection to shutdown.
-
Constructor Summary
ConstructorsConstructorDescriptionAmqpShutdownSignal(boolean isTransient, boolean isInitiatedByClient, String message) Creates a new instance of the AmqpShutdownSignal. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether or not this shutdown signal was initiated by the client.booleanGets whether or not this shutdown signal is transient or if it can be restarted.toString()Returns String representing the message of thisAmqpShutdownSignalsignal.
-
Constructor Details
-
AmqpShutdownSignal
Creates a new instance of the AmqpShutdownSignal.- Parameters:
isTransient- Whether the shutdown signal can be retried or not.isInitiatedByClient-trueif the shutdown was initiated by the client;falseotherwise.message- Message associated with the shutdown.
-
-
Method Details
-
isTransient
public boolean isTransient()Gets whether or not this shutdown signal is transient or if it can be restarted.- Returns:
trueif the shutdown signal is transient and the connection, session, or link can be recreated.falseotherwise.
-
isInitiatedByClient
public boolean isInitiatedByClient()Gets whether or not this shutdown signal was initiated by the client.- Returns:
trueif the shutdown signal was initiated by the client,falseif the shutdown signal occurred in the underlying AMQP layer or from the AMQP message broker.
-
toString
Returns String representing the message of thisAmqpShutdownSignalsignal. To write logs, please useAmqpLoggingUtils.addShutdownSignal(LoggingEventBuilder, AmqpShutdownSignal).
-