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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidpostDisconnect(ConnectionFactory<S> connectionFactory, org.springframework.web.context.request.WebRequest request)Called immediately after a connection is removed.voidpreDisconnect(ConnectionFactory<S> connectionFactory, org.springframework.web.context.request.WebRequest request)Called immediately before a connection is removed.
-
-
-
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 providerrequest- 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 providerrequest- the web request
-
-