langohr.shutdown
Convenience functions for dealing with shutdown signals
channel-of
(channel-of sse)
Returns the channel the signal is associated with. nil if
shutdown was initiated because of connection closure
connection-of
(connection-of sse)
Returns connection the signal is associated with
hard-error?
(hard-error? sse)
Returns true if the ShutDownSignalException signals a connection
error
initiated-by-application?
(initiated-by-application? sse)
Returns true if this if this exception was caused by explicit application
action; false if it originated with the broker or as a result
of detectable non-deliberate application failure
initiated-by-broker?
(initiated-by-broker? sse)
Returns true if this if this exception was initiated by the broker
because of a channel or connection exception
soft-error?
(soft-error? sse)
Returns true if the ShutdownSignalException does not signal a
connection error