List of usage examples for java.net ServerSocket getReuseAddress
public boolean getReuseAddress() throws SocketException
From source file:org.mule.transport.tcp.TcpServerSocketFactory.java
protected ServerSocket configure(ServerSocket socket, Boolean reuse, InetSocketAddress address, int backlog) throws IOException { if (null != reuse && reuse.booleanValue() != socket.getReuseAddress()) { socket.setReuseAddress(reuse.booleanValue()); }//from ww w . jav a2 s . co m // bind *after* setting so_reuseaddress socket.bind(address, backlog); return socket; }