Interface UpdateListener<E extends UpdateEvent>
- Type Parameters:
E
- the update event type
- All Known Implementing Classes:
TotalProgressListener
,TotalProgressPullListener
,TotalProgressPushListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Listener for update events published from the
DockerApi
.- Since:
- 2.3.0
- Author:
- Phillip Webb
-
Field Summary
Modifier and TypeFieldDescriptionstatic final UpdateListener<UpdateEvent>
A no-op update listener. -
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends UpdateEvent>
UpdateListener<E>none()
A no-op update listener that does nothing.default void
onFinish()
Called when the operation finishes (with or without error).default void
onStart()
Called when the operation starts.void
Called when an update event is available.
-
Field Details
-
NONE
A no-op update listener.- See Also:
-
-
Method Details
-
onStart
default void onStart()Called when the operation starts. -
onUpdate
Called when an update event is available.- Parameters:
event
- the update event
-
onFinish
default void onFinish()Called when the operation finishes (with or without error). -
none
A no-op update listener that does nothing.- Type Parameters:
E
- the event type- Returns:
- a no-op update listener
-