Package org.opentcs.access
Interface SharedKernelServicePortal
- All Superinterfaces:
AutoCloseable
Provides access to a shared
KernelServicePortal instance.-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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 interfaceAutoCloseable
-
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:
IllegalStateException- If this instance is closed.
-