Overview | Package | Class | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES

## Package edu.emory.mathcs.util.net

Networking-related utility classes.

See:
Description

Interface Summary
DecoratingServerSocket | Marker interface that indicates that a server socket is a wrapper for another server socket.
DecoratingSocket | Marker interface that indicates that a socket is a wrapper for another socket.

Class Summary
Connection | Single connection from pool of connections.
ConnectionPool | Manages a pool of socket connections to a single network endpoint.
ServerSocketWrapper | Wrapper for server sockets which enables to add functionality in subclasses on top of existing, bound server sockets.
SocketWrapper | Wrapper for sockets which enables to add functionality in subclasses on top of existing, connected sockets.

## Package edu.emory.mathcs.util.net Description

Networking-related utility classes. Highlights:

- `ConnectionPool` manages a pool of socket connections to a single network endpoint. Pooling enables reusing connections for multiple, unrelated data transfers, and it can be used to implement certain connection-based protocols like HTTP 1.1. Additionally, pooling can aid in controlling network load - limiting the maximum pool size causes excessive connection requests to be enqueued at the client side.
- `SocketWrapper` and `ServerSocketWrapper` allow to add functionality over existing network connections, so that the decorator is still perceived as a socket. It is very useful in cases when it is impossible to write decorator as a subclass, for instance when the base socket is created by an independent library. Practical application is supplied by `CompressedSocketWrapper` and `CompressedServerSocketWrapper` classes, which allow to enable compression on top of existing socket connections, and can readily serve as an RMI transport.
- In-process socket abstraction: see `edu.emory.mathcs.util.net.inproc`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES