Class AbstractGatewaySubscription

    • Constructor Detail

      • AbstractGatewaySubscription

        public AbstractGatewaySubscription​(GridgoContext context,
                                           java.lang.String name)
    • Method Detail

      • attachConnector

        public ConnectorAttachment attachConnector​(java.lang.String endpoint,
                                                   io.gridgo.connector.ConnectorResolver resolver)
        Description copied from interface: GatewaySubscription
        Attach a connector to the gateway with an endpoint using a custom resolver.
        Specified by:
        attachConnector in interface GatewaySubscription
        Parameters:
        endpoint - the endpoint
        resolver - the resolver
        Returns:
        the connector attachment
      • attachConnector

        public ConnectorAttachment attachConnector​(java.lang.String endpoint,
                                                   io.gridgo.connector.support.config.ConnectorContext connectorContext)
        Description copied from interface: GatewaySubscription
        Attach a connector to the gateway with an endpoint and a context.
        Specified by:
        attachConnector in interface GatewaySubscription
        Parameters:
        endpoint - the endpoint
        connectorContext - the context
        Returns:
        the connector attachment
      • attachConnector

        public ConnectorAttachment attachConnector​(java.lang.String endpoint,
                                                   io.gridgo.connector.ConnectorResolver resolver,
                                                   io.gridgo.connector.support.config.ConnectorContext connectorContext)
        Description copied from interface: GatewaySubscription
        Attach a connector to the gateway with an endpoint and a context using a custom resolver.
        Specified by:
        attachConnector in interface GatewaySubscription
        Parameters:
        endpoint - the endpoint
        resolver - the resolver
        connectorContext - the context
        Returns:
        the connector attachment
      • publish

        protected void publish​(ConnectorAttachment connectorAttachment,
                               io.gridgo.framework.support.Message msg,
                               org.joo.promise4j.Deferred<io.gridgo.framework.support.Message,​java.lang.Exception> deferred)
      • onStart

        protected void onStart()
        Specified by:
        onStart in class io.gridgo.framework.impl.AbstractComponentLifecycle
      • onStop

        protected void onStop()
        Specified by:
        onStop in class io.gridgo.framework.impl.AbstractComponentLifecycle
      • generateName

        protected java.lang.String generateName()
        Specified by:
        generateName in class io.gridgo.framework.impl.AbstractComponentLifecycle
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface io.gridgo.framework.NamedComponent
        Overrides:
        getName in class io.gridgo.framework.impl.AbstractComponentLifecycle
      • getSubject

        public io.reactivex.subjects.Subject<RoutingContext> getSubject()