public void close() { try { super.close(); } finally { registry.unregisterBinding(this); } }
public void bind(SocketAddress bindpoint) throws IOException { super.bind(bindpoint); socketBindings.registerBinding(this); }
@Override public void close() throws IOException { try { socket.close(); } finally { registry.unregisterBinding(this); } } }
public void bind(SocketAddress bindpoint) throws IOException { super.bind(bindpoint); socketBindings.registerBinding(this); }
@Override public void close() throws IOException { try { registry.unregisterBinding(this); } finally { socket.close(); } }
public void bind(SocketAddress bindpoint) throws IOException { super.bind(bindpoint); socketBindings.registerBinding(this); }
@Override public void close() throws IOException { try { socket.close(); } finally { registry.unregisterBinding(this); } } }
@Override public synchronized void bind(SocketAddress addr) throws SocketException { super.bind(addr); // This method might have been called from the super constructor if (this.registry != null) { this.registry.registerBinding(this); } }
@Override public void close() throws IOException { try { registry.unregisterBinding(this); } finally { socket.close(); } }
@Override public synchronized void bind(SocketAddress addr) throws SocketException { super.bind(addr); this.socketBindings.registerBinding(this); }
public synchronized void close() throws IOException { try { super.close(); } finally { socketBindings.unregisterBinding(this); } }
ManagedDatagramSocketBinding(final String name, final ManagedBindingRegistry socketBindings, SocketAddress address) throws SocketException { super(address); this.name = name; this.address = address; this.registry = socketBindings; if (this.isBound()) { this.registry.registerBinding(this); } }
public void close() { try { super.close(); } finally { registry.unregisterBinding(this); } }
@Override public synchronized void bind(SocketAddress addr) throws SocketException { super.bind(addr); this.socketBindings.registerBinding(this); }
@Override public void close() throws IOException { try { socket.close(); } finally { registry.unregisterBinding(this); } } }
@Override public synchronized void bind(SocketAddress addr) throws SocketException { super.bind(addr); // This method might have been called from the super constructor if (this.socketBindings != null) { this.socketBindings.registerBinding(this); } }
@Override public void close() throws IOException { try { registry.unregisterBinding(this); } finally { closeable.close(); } }
private ManagedMulticastSocketBinding(final String name, final ManagedBindingRegistry socketBindings, SocketAddress address) throws IOException { super(address); this.name = name; this.address = address; this.socketBindings = socketBindings; if (this.isBound()) { this.socketBindings.registerBinding(this); } }
public synchronized void close() throws IOException { try { socketBindings.unregisterBinding(this); } finally { super.close(); } }
public synchronized void bind(SocketAddress addr) throws SocketException { super.bind(addr); registry.registerBinding(this); }