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 theKernelServicePortal
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 interfacejava.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
Returns theKernelServicePortal
instance being shared.- Returns:
- The portal instance being shared.
- Throws:
java.lang.IllegalStateException
- If this instance is closed.
-