Index
All Classes and Interfaces|All Packages
A
- AFSocketServer<A extends org.newsclub.net.unix.AFSocketAddress> - Class in org.newsclub.net.unix.server
-
A base implementation for a simple, multi-threaded socket server using
AFSockets. - AFSocketServer(A) - Constructor for class org.newsclub.net.unix.server.AFSocketServer
-
Creates a server using the given
SocketAddress. - AFSocketServer(AFServerSocket<? extends A>) - Constructor for class org.newsclub.net.unix.server.AFSocketServer
-
Creates a server using the given, bound
ServerSocket. - AFUNIXSocketServer - Class in org.newsclub.net.unix.server
-
Deprecated.
- AFUNIXSocketServer(ServerSocket) - Constructor for class org.newsclub.net.unix.server.AFUNIXSocketServer
-
Deprecated.Creates a server using the given, bound
ServerSocket. - AFUNIXSocketServer(SocketAddress) - Constructor for class org.newsclub.net.unix.server.AFUNIXSocketServer
-
Deprecated.Creates a server using the given
SocketAddress.
D
- doServeSocket(S) - Method in class org.newsclub.net.unix.server.SocketServer
-
Called when a socket is ready to be served.
G
- getListenAddress() - Method in class org.newsclub.net.unix.server.SocketServer
-
Returns the address the server listens to.
- getMaxConcurrentConnections() - Method in class org.newsclub.net.unix.server.SocketServer
-
Returns the maximum number of concurrent connections.
- getServerBusyTimeout() - Method in class org.newsclub.net.unix.server.SocketServer
-
Returns the server-busy timeout (in milliseconds).
- getServerTimeout() - Method in class org.newsclub.net.unix.server.SocketServer
-
Returns the server timeout (in milliseconds).
- getSocketTimeout() - Method in class org.newsclub.net.unix.server.SocketServer
-
Returns the socket timeout (in milliseconds).
I
- isReady() - Method in class org.newsclub.net.unix.server.SocketServer
-
Checks if the server is running and accepting new connections.
- isRunning() - Method in class org.newsclub.net.unix.server.SocketServer
-
Checks if the server is running.
N
- newServerSocket() - Method in class org.newsclub.net.unix.server.AFSocketServer
- newServerSocket() - Method in class org.newsclub.net.unix.server.AFUNIXSocketServer
-
Deprecated.
- newServerSocket() - Method in class org.newsclub.net.unix.server.SocketServer
-
Returns a new server socket.
O
- onAfterServingSocket(S) - Method in class org.newsclub.net.unix.server.SocketServer
-
Called after the socket has been served.
- onBeforeServingSocket(S) - Method in class org.newsclub.net.unix.server.SocketServer
-
Called before serving the socket.
- onListenException(Exception) - Method in class org.newsclub.net.unix.server.SocketServer
-
Called when an exception was thrown while listening on the server socket.
- onServerBound(A) - Method in class org.newsclub.net.unix.server.SocketServer
-
Called when the server has been bound to a socket.
- onServerBusy(long) - Method in class org.newsclub.net.unix.server.SocketServer
-
Called when the server is busy / not ready to accept a new connection.
- onServerReady(int) - Method in class org.newsclub.net.unix.server.SocketServer
-
Called when the server is ready to accept a new connection.
- onServerShuttingDown() - Method in class org.newsclub.net.unix.server.SocketServer
-
Called when the server is shutting down.
- onServerStarting() - Method in class org.newsclub.net.unix.server.SocketServer
-
Called when the server is starting up.
- onServerStopped(V) - Method in class org.newsclub.net.unix.server.SocketServer
-
Called when the server has been stopped.
- onServingException(S, Exception) - Method in class org.newsclub.net.unix.server.SocketServer
-
Called when an exception was thrown while serving a socket.
- onSocketExceptionAfterAccept(S, SocketException) - Method in class org.newsclub.net.unix.server.SocketServer
-
Called when a
SocketExceptionwas thrown during "accept". - onSocketExceptionDuringAccept(SocketException) - Method in class org.newsclub.net.unix.server.SocketServer
-
Called when a
SocketExceptionwas thrown during "accept". - onSubmitted(S, Future<?>) - Method in class org.newsclub.net.unix.server.SocketServer
-
Called when a socket gets submitted into the process queue.
- org.newsclub.net.unix.server - module org.newsclub.net.unix.server
-
Base implementation for junixsocket servers.
- org.newsclub.net.unix.server - package org.newsclub.net.unix.server
S
- setMaxConcurrentConnections(int) - Method in class org.newsclub.net.unix.server.SocketServer
-
Sets the maximum number of concurrent connections.
- setServerBusyTimeout(int) - Method in class org.newsclub.net.unix.server.SocketServer
-
Sets the server-busy timeout (in milliseconds).
- setServerTimeout(int) - Method in class org.newsclub.net.unix.server.SocketServer
-
Sets the server timeout (in milliseconds).
- setSocketTimeout(int) - Method in class org.newsclub.net.unix.server.SocketServer
-
Sets the socket timeout (in milliseconds).
- SocketServer<A extends SocketAddress,
S extends Socket, V extends ServerSocket> - Class in org.newsclub.net.unix.server -
A base implementation for a simple, multi-threaded socket server.
- SocketServer(A) - Constructor for class org.newsclub.net.unix.server.SocketServer
-
Creates a server using the given
SocketAddress. - SocketServer(V) - Constructor for class org.newsclub.net.unix.server.SocketServer
-
Creates a server using the given, bound
ServerSocket. - start() - Method in class org.newsclub.net.unix.server.SocketServer
-
Starts the server, and returns immediately.
- startAndWait(long, TimeUnit) - Method in class org.newsclub.net.unix.server.AFUNIXSocketServer
-
Deprecated.
- startAndWaitToBecomeReady(long, TimeUnit) - Method in class org.newsclub.net.unix.server.SocketServer
-
Starts the server and waits until it is ready or had to shop due to an error.
- startThenStopAfter(long, TimeUnit) - Method in class org.newsclub.net.unix.server.SocketServer
-
Requests that the server will be stopped after the given time delay.
- stop() - Method in class org.newsclub.net.unix.server.SocketServer
-
Stops the server.
All Classes and Interfaces|All Packages
SocketServerorAFSocketServer