/** * Get the {@code ManagedBinding} associated with this {@code SocketBinding}. * * @return the managed binding if bound, <code>null</code> otherwise */ public ManagedBinding getManagedBinding() { final SocketBindingManager.NamedManagedBindingRegistry registry = this.socketBindings.getNamedRegistry(); return registry.getManagedBinding(name); }
/** * Closes the outbound socket binding connection * * @throws IOException */ public void close() throws IOException { final ManagedBinding binding = this.socketBindingManager.getNamedRegistry().getManagedBinding(this.name); if (binding == null) { return; } binding.close(); }
/** * Returns true if a socket connection has been established by this outbound socket binding. Else returns false * * @return */ public boolean isConnected() { return this.socketBindingManager.getNamedRegistry().getManagedBinding(this.name) != null; }
/** * Returns true if a socket connection has been established by this outbound socket binding, false otherwise. * * @return true if a socket connection has been established by this outbound socket binding, false otherwise */ public boolean isConnected() { return this.socketBindingManager.getNamedRegistry().getManagedBinding(this.name) != null; }
/** * Closes the outbound socket binding connection. * * @throws IOException */ public void close() throws IOException { final ManagedBinding binding = this.socketBindingManager.getNamedRegistry().getManagedBinding(this.name); if (binding == null) { return; } binding.close(); }
/** * Returns true if a socket connection has been established by this outbound socket binding. Else returns false * * @return */ public boolean isConnected() { return this.socketBindingManager.getNamedRegistry().getManagedBinding(this.name) != null; }
/** * Get the {@code ManagedBinding} associated with this {@code SocketBinding}. * * @return the managed binding if bound, <code>null</code> otherwise */ public ManagedBinding getManagedBinding() { final SocketBindingManager.NamedManagedBindingRegistry registry = this.socketBindings.getNamedRegistry(); return registry.getManagedBinding(name); }
/** * Get the {@code ManagedBinding} associated with this {@code SocketBinding}. * * @return the managed binding if bound, <code>null</code> otherwise */ public ManagedBinding getManagedBinding() { final SocketBindingManager.NamedManagedBindingRegistry registry = this.socketBindings.getNamedRegistry(); return registry.getManagedBinding(name); }
/** * Closes the outbound socket binding connection * * @throws IOException */ public void close() throws IOException { final ManagedBinding binding = this.socketBindingManager.getNamedRegistry().getManagedBinding(this.name); if (binding == null) { return; } binding.close(); }