Interface Pausable
- All Superinterfaces:
org.springframework.context.Lifecycle
,ManageableLifecycle
public interface Pausable extends ManageableLifecycle
Endpoints implementing this interface can be paused/resumed. A paused endpoint might
still maintain a connection to an external system, but will not send or receive
messages.
- Since:
- 5.0.3
-
Method Summary
Methods inherited from interface org.springframework.integration.support.management.ManageableLifecycle
isRunning, start, stop
-
Method Details
-
pause
@ManagedOperation(description="Pause the component") void pause()Pause the endpoint. -
resume
@ManagedOperation(description="Resume the component") void resume()Resume the endpoint if paused. -
isPaused
@ManagedAttribute(description="Is the component paused?") default boolean isPaused()Check if the endpoint is paused.- Returns:
- true if paused.
- Since:
- 5.4
-