All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.camunda.zeebe.spring.client.event.ZeebeClientClosingEvent Maven / Gradle / Ivy

There is a newer version: 8.5.10
Show newest version
package io.camunda.zeebe.spring.client.event;

import io.camunda.zeebe.client.ZeebeClient;
import org.springframework.context.ApplicationEvent;

/**
 * Emitted when the ZeebeClient is about to close. Typically, during application shutdown, but maybe
 * more often in test case or never if the ZeebeClient is disabled, see {@link
 * ZeebeClientCreatedEvent} for more details
 */
public class ZeebeClientClosingEvent extends ApplicationEvent {

  public final ZeebeClient client;

  public ZeebeClientClosingEvent(Object source, ZeebeClient client) {
    super(source);
    this.client = client;
  }

  public ZeebeClient getClient() {
    return client;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy