XNIO API 2.1.0.CR2

org.jboss.xnio.management
Interface InetBindable

All Known Subinterfaces:
TcpServerMBean

public interface InetBindable

A managed object which may be bound and unbound to a socket address.

Since:
1.2

Method Summary
 void bind(InetSocketAddress address)
          Bind the entity to a socket address.
 void bind(String hostName, int port)
          Bind the entity to a host and port.
 void unbind(InetSocketAddress address)
          Unbind the entity from a socket address.
 void unbind(String hostName, int port)
          Unbind the entity from a host and port.
 

Method Detail

bind

void bind(InetSocketAddress address)
          throws IOException
Bind the entity to a socket address.

Parameters:
address - the address
Throws:
IOException - if an error occurs

bind

void bind(String hostName,
          int port)
          throws IOException
Bind the entity to a host and port.

Parameters:
hostName - the host name
port - the port number
Throws:
IOException - if an error occurs

unbind

void unbind(InetSocketAddress address)
            throws IOException
Unbind the entity from a socket address.

Parameters:
address - the address
Throws:
IOException - if an error occurs

unbind

void unbind(String hostName,
            int port)
            throws IOException
Unbind the entity from a host and port.

Parameters:
hostName - the host name
port - the port number
Throws:
IOException - if an error occurs

XNIO API 2.1.0.CR2

Copyright © 2010 JBoss, a division of Red Hat, Inc.