Interface ConnectorAttachment

  • All Known Implementing Classes:
    DefaultConnectorAttachment

    public interface ConnectorAttachment
    Represents a connector attachment. This class is used for a "fluent" API, so that you can modify the transformer of the connector after attaching it to a gateway.
    • Method Detail

      • transformIncomingWith

        ConnectorAttachment transformIncomingWith​(MessageTransformer transformer)
        Attach a MessageTransformer to this connector when transform incoming messages.
        Parameters:
        transformer - the transformer
        Returns:
        this ConnectorSubscription
      • transformOutgoingWith

        ConnectorAttachment transformOutgoingWith​(MessageTransformer transformer)
        Attach a MessageTransformer to this connector when transform outgoing messages.
        Parameters:
        transformer - the transformer
        Returns:
        this ConnectorSubscription
      • finishAttaching

        GatewaySubscription finishAttaching()
        Finish subscribing this connector.
        Returns:
        the GatewaySubscription which this connector is attached
      • getConnector

        io.gridgo.connector.Connector getConnector()