Interface DisconnectInterceptor<S>

  • Type Parameters:
    S - The service API hosted by the intercepted service provider.

    public interface DisconnectInterceptor<S>
    Listens for service provider disconnection events. Allows for custom logic to be executed before and after connections are deleted with a specific service provider.
    Author:
    Craig Walls
    • Method Detail

      • preDisconnect

        void preDisconnect​(ConnectionFactory<S> connectionFactory,
                           org.springframework.web.context.request.WebRequest request)
        Called immediately before a connection is removed.
        Parameters:
        connectionFactory - the connection factory for the service provider
        request - the web request
      • postDisconnect

        void postDisconnect​(ConnectionFactory<S> connectionFactory,
                            org.springframework.web.context.request.WebRequest request)
        Called immediately after a connection is removed.
        Parameters:
        connectionFactory - the connection factory for the service provider
        request - the web request