public final class PriorityBoostingSocketStreamDecorationStrategy extends java.lang.Object implements SocketStreamDecorationStrategy
| Modifier and Type | Class and Description |
|---|---|
static class |
PriorityBoostingSocketStreamDecorationStrategy.Factory
Factory for creating instances of
PriorityBoostingSocketStreamDecorationStrategy. |
| Constructor and Description |
|---|
PriorityBoostingSocketStreamDecorationStrategy(int minPriority) |
public PriorityBoostingSocketStreamDecorationStrategy(int minPriority)
public java.io.InputStream decorate(java.net.Socket socket,
java.io.InputStream stream)
throws java.io.IOException
InputStream.decorate in interface SocketStreamDecorationStrategysocket - the source of the original streamstream - the stream to be decoratedInputStream.java.io.IOException - if an I/O error occurs while creating the socket.public java.io.OutputStream decorate(java.net.Socket socket,
java.io.OutputStream stream)
throws java.io.IOException
OutputStream.decorate in interface SocketStreamDecorationStrategysocket - the source of the original streamstream - the stream to be decoratedOutputStream.java.io.IOException - if an I/O error occurs while creating the socket.