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

org.opentcs.access.SharedKernelServicePortal Maven / Gradle / Ivy

There is a newer version: 6.2.0
Show newest version
/**
 * Copyright (c) The openTCS Authors.
 *
 * This program is free software and subject to the MIT license. (For details,
 * see the licensing information (LICENSE.txt) you should have received with
 * this copy of the software.)
 */
package org.opentcs.access;

/**
 * Provides access to a shared {@link KernelServicePortal} instance.
 */
public interface SharedKernelServicePortal
    extends
      AutoCloseable {

  @Override
  void close();

  /**
   * Indicates whether this instance is closed/unregistered from the shared portal pool.
   *
   * @return {@code true} if, and only if, this instance is closed.
   */
  boolean isClosed();

  /**
   * Returns the {@link KernelServicePortal} instance being shared.
   *
   * @return The portal instance being shared.
   * @throws IllegalStateException If this instance is closed.
   */
  KernelServicePortal getPortal()
      throws IllegalStateException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy