C - The type of connection generated.public interface ConnectorConnectionProvider<C extends ConnectorConnection>
extends org.mule.runtime.api.connection.ConnectionProvider<C>
| Modifier and Type | Method and Description |
|---|---|
default void |
disconnect(C connection)
Delegates to the connection it's own disposal, freeing all its allocated resources
|
default org.mule.runtime.api.connection.ConnectionValidationResult |
validate(C connection)
Validates the given
C. |
default void disconnect(C connection)
disconnect in interface org.mule.runtime.api.connection.ConnectionProvider<C extends ConnectorConnection>connection - a non null Connection.default org.mule.runtime.api.connection.ConnectionValidationResult validate(C connection)
C.
Delegates the validation to the connection itself. If the connection fails, it should throw an exception.validate in interface org.mule.runtime.api.connection.ConnectionProvider<C extends ConnectorConnection>connection - a non null C.ConnectionValidationResult indicating if the connection is valid or not.Copyright © 2018. All rights reserved.