接口 UpdateListener<E extends UpdateEvent>

类型参数:
E - the update event type
所有已知实现类:
DockerApi.DigestCaptureUpdateListener, DockerApi.ErrorCaptureUpdateListener, DockerApi.StreamCaptureUpdateListener, TotalProgressListener, TotalProgressPullListener, TotalProgressPushListener
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface UpdateListener<E extends UpdateEvent>
Listener for update events published from the DockerApi.
从以下版本开始:
4.0
作者:
Phillip Webb
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    A no-op update listener.
  • 方法概要

    修饰符和类型
    方法
    说明
    static <E extends UpdateEvent>
    UpdateListener<E>
    A no-op update listener that does nothing.
    default void
    Called when the operation finishes (with or without error).
    default void
    Called when the operation starts.
    void
    onUpdate(E event)
    Called when an update event is available.
  • 字段详细资料

  • 方法详细资料

    • onStart

      default void onStart()
      Called when the operation starts.
    • onUpdate

      void onUpdate(E event)
      Called when an update event is available.
      参数:
      event - the update event
    • onFinish

      default void onFinish()
      Called when the operation finishes (with or without error).
    • none

      static <E extends UpdateEvent> UpdateListener<E> none()
      A no-op update listener that does nothing.
      类型参数:
      E - the event type
      返回:
      a no-op update listener