AmqpConnection Interface
Implements
public interface AmqpConnection
extends Disposable, AsyncCloseable
Represents a TCP connection between the client and a service that uses the AMQP protocol.
Method Summary
Modifier and Type | Method and Description |
---|---|
default Mono<Void> |
closeAsync()
Disposes of the AMQP connection. |
abstract
Mono<Amqp |
createSession(String sessionName)
Creates a new session with the given session name. |
abstract
Mono<Claims |
getClaimsBasedSecurityNode()
Gets the claims-based security (CBS) node that authorizes access to resources. |
abstract Map<String,Object> |
getConnectionProperties()
Gets the connection properties. |
abstract
Flux<Amqp |
getEndpointStates()
Gets the endpoint states for the AMQP connection. |
abstract String |
getFullyQualifiedNamespace()
Gets the fully qualified namespace for the AMQP connection. |
abstract String |
getId()
Gets the connection identifier. |
default
Mono<Amqp |
getManagementNode(String entityPath)
Gets or creates the management node. |
abstract int |
getMaxFrameSize()
Gets the maximum frame size for the connection. |
abstract
Flux<Amqp |
getShutdownSignals()
Gets any shutdown signals that occur in the AMQP endpoint. |
abstract boolean |
removeSession(String sessionName)
Removes a session with the |
Method Details
closeAsync
public default Mono<Void> closeAsync()
Disposes of the AMQP connection.
Returns:
createSession
public abstract Mono<AmqpSession> createSession(String sessionName)
Creates a new session with the given session name.
Parameters:
Returns:
getClaimsBasedSecurityNode
public abstract Mono<ClaimsBasedSecurityNode> getClaimsBasedSecurityNode()
Gets the claims-based security (CBS) node that authorizes access to resources.
Returns:
getConnectionProperties
public abstract Map<String,Object> getConnectionProperties()
Gets the connection properties.
Returns:
getEndpointStates
public abstract Flux<AmqpEndpointState> getEndpointStates()
Gets the endpoint states for the AMQP connection. AmqpException that occur on the link are reported in the connection state. When the stream terminates, the connection is closed.
Returns:
getFullyQualifiedNamespace
public abstract String getFullyQualifiedNamespace()
Gets the fully qualified namespace for the AMQP connection.
Returns:
getId
public abstract String getId()
Gets the connection identifier.
Returns:
getManagementNode
public default Mono<AmqpManagementNode> getManagementNode(String entityPath)
Gets or creates the management node.
Parameters:
Returns:
getMaxFrameSize
public abstract int getMaxFrameSize()
Gets the maximum frame size for the connection.
Returns:
getShutdownSignals
public abstract Flux<AmqpShutdownSignal> getShutdownSignals()
Gets any shutdown signals that occur in the AMQP endpoint.
Returns:
removeSession
public abstract boolean removeSession(String sessionName)
Removes a session with the sessionName
from the AMQP connection.
Parameters:
Returns:
true
if a session with the name was removed; false
otherwise.