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 voidclose()KernelServicePortalgetPortal()Returns theKernelServicePortalinstance being shared.booleanisClosed()Indicates whether this instance is closed/unregistered from the shared portal pool.
-
Method Details
-
close
void close()- Specified by:
closein interfacejava.lang.AutoCloseable
-
isClosed
boolean isClosed()Indicates whether this instance is closed/unregistered from the shared portal pool.- Returns:
trueif, and only if, this instance is closed.
-
getPortal
Returns theKernelServicePortalinstance being shared.- Returns:
- The portal instance being shared.
- Throws:
java.lang.IllegalStateException- If this instance is closed.
-