public class ConnectionDegradation extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConnectionDegradation.Builder |
| Modifier and Type | Method and Description |
|---|---|
ISocket |
createPreferredSocket()
Creates a new unconnected socket based on the most prefered connection type.
|
Optional<ISocket> |
degradeSocket(ISocket socket)
Degrades the given socket into the next type
|
String |
toString() |
public ISocket createPreferredSocket()
public Optional<ISocket> degradeSocket(ISocket socket)
socket - The socket type to degradeOptional.empty() when no degradation is possibleCopyright © 2016. All rights reserved.