Class Slot
java.lang.Object
ch.nolix.base.net.level2server.Slot
- All Implemented Interfaces:
INameHolder, ISlot
-
Method Summary
Modifier and TypeMethodDescriptiongetName()voidtakeBackendEndPoint(IEndPoint backendEndPoint) static SlotwithNameAndParentServer(String name, AbstractServer parentServer) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface INameHolder
getNameInQuotes, hasName, hasSameNameAs
-
Method Details
-
withNameAndParentServer
- Parameters:
name-parentServer-- Returns:
- a new
Slotwith the given name and that will belong to the given parentServer. - Throws:
RuntimeException- if given name is null or blank.RuntimeException- if the given parentServer is null.
-
getName
- Specified by:
getNamein interfaceINameHolder- Returns:
- the name of the current
INameHolder.
-
takeBackendEndPoint
- Specified by:
takeBackendEndPointin interfaceISlot
-