Class HeisenbergConnectionProvider

java.lang.Object
org.mule.test.heisenberg.extension.HeisenbergConnectionProvider
All Implemented Interfaces:
org.mule.runtime.api.connection.ConnectionProvider<HeisenbergConnection>
Direct Known Subclasses:
SecureHeisenbergConnectionProvider

@ExternalLib(name="Heisenberg.so", description="Native Heisenberg support", nameRegexpMatcher="heisenberg.so", requiredClassName="org.heisenberg.HeisenbergJNI", type=NATIVE) @Deprecated(message="Usages of this connection provider must be change to the secure option, this will lower the chances of getting caught by the DEA", since="1.3.0", toRemoveIn="2.0.0") public class HeisenbergConnectionProvider extends Object implements org.mule.runtime.api.connection.ConnectionProvider<HeisenbergConnection>
  • Field Details

  • Constructor Details

    • HeisenbergConnectionProvider

      public HeisenbergConnectionProvider()
  • Method Details

    • connect

      public HeisenbergConnection connect() throws org.mule.runtime.api.connection.ConnectionException
      Specified by:
      connect in interface org.mule.runtime.api.connection.ConnectionProvider<HeisenbergConnection>
      Throws:
      org.mule.runtime.api.connection.ConnectionException
    • disconnect

      public void disconnect(HeisenbergConnection heisenbergConnection)
      Specified by:
      disconnect in interface org.mule.runtime.api.connection.ConnectionProvider<HeisenbergConnection>
    • validate

      public org.mule.runtime.api.connection.ConnectionValidationResult validate(HeisenbergConnection heisenbergConnection)
      Specified by:
      validate in interface org.mule.runtime.api.connection.ConnectionProvider<HeisenbergConnection>
    • getConnects

      public static int getConnects()
    • getDisconnects

      public static int getDisconnects()
    • getActiveConnections

      public static Set<HeisenbergConnection> getActiveConnections()