/** * Check whether this {@code SocketBinding} is bound. All bound sockets * have to be registered at the {@code SocketBindingManager} against which * this check is performed. * * @return true if bound, false otherwise */ public boolean isBound() { final SocketBindingManager.NamedManagedBindingRegistry registry = this.socketBindings.getNamedRegistry(); return registry.isRegistered(name); }
/** * Check whether this {@code SocketBinding} is bound. All bound sockets * have to be registered at the {@code SocketBindingManager} against which * this check is performed. * * @return true if bound, false otherwise */ public boolean isBound() { final SocketBindingManager.NamedManagedBindingRegistry registry = this.socketBindings.getNamedRegistry(); return registry.isRegistered(name); }
/** * Check whether this {@code SocketBinding} is bound. All bound sockets * have to be registered at the {@code SocketBindingManager} against which * this check is performed. * * @return true if bound, false otherwise */ public boolean isBound() { final SocketBindingManager.NamedManagedBindingRegistry registry = this.socketBindings.getNamedRegistry(); return registry.isRegistered(name); }