diff --git a/src/dorkbox/network/connection/Shutdownable.java b/src/dorkbox/network/connection/Shutdownable.java index e91b63dc..67a5e286 100644 --- a/src/dorkbox/network/connection/Shutdownable.java +++ b/src/dorkbox/network/connection/Shutdownable.java @@ -121,7 +121,7 @@ class Shutdownable { protected final ThreadGroup threadGroup; - protected final Class type; + private final Class type; protected final Object shutdownInProgress = new Object(); private volatile boolean isShutdown = false; @@ -486,8 +486,19 @@ class Shutdownable { return "EndPoint [" + getName() + "]"; } + /** + * @return the type class of this connection endpoint + */ + public Class getType() { + return type; + } + + /** + * @return the simple name (for the class) of this connection endpoint + */ public String getName() { return type.getSimpleName(); } + }