/** * {@inheritDoc} */ @Override public SocketAddress getLocalAddress() { Set<SocketAddress> localAddresses = getLocalAddresses(); if (localAddresses.isEmpty()) { return null; } return localAddresses.iterator().next(); }
/** * {@inheritDoc} */ @Override public SocketAddress getLocalAddress() { Set<SocketAddress> localAddresses = getLocalAddresses(); if (localAddresses.isEmpty()) { return null; } return localAddresses.iterator().next(); }
/** * {@inheritDoc} */ public SocketAddress getLocalAddress() { Set<SocketAddress> localAddresses = getLocalAddresses(); if (localAddresses.isEmpty()) { return null; } return localAddresses.iterator().next(); }
/** * {@inheritDoc} */ @Override public final void unbind() { unbind(getLocalAddresses()); }
/** * {@inheritDoc} */ @Override public final void unbind() { unbind(getLocalAddresses()); }
/** * {@inheritDoc} */ public final void unbind() { unbind(getLocalAddresses()); }
throw e; } catch (Exception e) { throw new RuntimeIoException("Failed to unbind from: " + getLocalAddresses(), e);
throw e; } catch (Exception e) { throw new RuntimeIoException("Failed to unbind from: " + getLocalAddresses(), e);
} catch (Throwable e) { throw new RuntimeIoException( "Failed to unbind from: " + getLocalAddresses(), e);
throw e; } catch (Exception e) { throw new RuntimeIoException("Failed to bind to: " + getLocalAddresses(), e);
throw e; } catch (Exception e) { throw new RuntimeIoException("Failed to bind to: " + getLocalAddresses(), e);
} catch (Throwable e) { throw new RuntimeIoException( "Failed to bind to: " + getLocalAddresses(), e);
@Override public String toString() { TransportMetadata m = getTransportMetadata(); return '(' + m.getProviderName() + ' ' + m.getName() + " acceptor: " + (isActive() ? "localAddress(es): " + getLocalAddresses() + ", managedSessionCount: " + getManagedSessionCount() : "not bound") + ')'; }
@Override public String toString() { TransportMetadata m = getTransportMetadata(); return '(' + m.getProviderName() + ' ' + m.getName() + " acceptor: " + (isActive() ? "localAddress(es): " + getLocalAddresses() + ", managedSessionCount: " + getManagedSessionCount() : "not bound") + ')'; }
@Override public String toString() { TransportMetadata m = getTransportMetadata(); return '(' + m.getProviderName() + ' ' + m.getName() + " acceptor: " + (isActive()? "localAddress(es): " + getLocalAddresses() + ", managedSessionCount: " + getManagedSessionCount() : "not bound") + ')'; }