com.tibco.be.custom.channel.framework

## Interface Destination

- All Known Implementing Classes:
    BaseDestination

      public interface Destination

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()` Closes the Destination and frees up all its resources.
    `void` | `connect()` Connects the `Destination` to the underlying endpoint.
    `void` | `start()` Starts the destination, so that it can receive data from the endpoint.

- - ### Method Detail

    - #### connect

          void connect()

      Connects the `Destination` to the underlying endpoint.

      Only valid on an initialized `Destination`. After this call, you will be able to `start` or `close` the `Destination`.

      Do not start sending or receiving data data here.

      Throws:
        `java.lang.Exception` - when the Destination could not be connected to the underlying endpoint.
      Since:
        5.4
      See Also:
        `Destination.start()`, `Destination.close()`

    - #### start

          void start()

      Starts the destination, so that it can receive data from the endpoint.

      Only valid on a connected `Destination` After this call, you will be able to `stop` and `close` the `Destination`.

      Throws:
        `java.lang.Exception` - when the Destination could not be started.
      Since:
        5.4
      See Also:
        `Destination.connect()`, `Destination.close()`

    - #### close

          void close()

      Closes the Destination and frees up all its resources.

      After this call, you will be able to `init` the `Destination`.

      Throws:
        `java.lang.Exception` - encountered exception
      Since:
        5.4