Package org.opentcs.access

# Interface SharedKernelServicePortal

All Superinterfaces:
  `java.lang.AutoCloseable`

    public interface SharedKernelServicePortal
    extends java.lang.AutoCloseable

Provides access to a shared `KernelServicePortal` instance.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `void` | `close()` |
  `KernelServicePortal` | `getPortal()` | Returns the `KernelServicePortal` instance being shared.
  `boolean` | `isClosed()` | Indicates whether this instance is closed/unregistered from the shared portal pool.

- ## Method Details

  - ### close

    void close()
    Specified by:
      `close` in interface `java.lang.AutoCloseable`

  - ### isClosed

    boolean isClosed()
    Indicates whether this instance is closed/unregistered from the shared portal pool.
    Returns:
      `true` if, and only if, this instance is closed.

  - ### getPortal

    KernelServicePortal getPortal() throws java.lang.IllegalStateException
    Returns the `KernelServicePortal` instance being shared.
    Returns:
      The portal instance being shared.
    Throws:
      `java.lang.IllegalStateException` - If this instance is closed.