Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
SimpleServerSocketFactory |
|
| 1.0;1 |
1 | /* | |
2 | * $Id: SimpleServerSocketFactory.java 20321 2010-11-24 15:21:24Z dfeist $ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
5 | * | |
6 | * The software in this package is published under the terms of the CPAL v1.0 | |
7 | * license, a copy of which has been included with this distribution in the | |
8 | * LICENSE.txt file. | |
9 | */ | |
10 | ||
11 | package org.mule.transport.tcp; | |
12 | ||
13 | import java.io.IOException; | |
14 | import java.net.InetAddress; | |
15 | import java.net.ServerSocket; | |
16 | import java.net.URI; | |
17 | ||
18 | public interface SimpleServerSocketFactory | |
19 | { | |
20 | ||
21 | /** | |
22 | * @param uri The address and port to connect to | |
23 | * @param backlog The backlog (or {@link org.mule.api.transport.Connector#INT_VALUE_NOT_SET}) | |
24 | * @param reuse Whether to reuse addresses (null for default) | |
25 | * @return A new, bound server socket | |
26 | * @throws IOException | |
27 | */ | |
28 | ServerSocket createServerSocket(URI uri, int backlog, Boolean reuse) throws IOException; | |
29 | ||
30 | ServerSocket createServerSocket(InetAddress address, int port, int backlog, Boolean reuse) throws IOException; | |
31 | ||
32 | ServerSocket createServerSocket(int port, int backlog, Boolean reuse) throws IOException; | |
33 | ||
34 | } |