Package net.officefloor.server
Interface SocketServicer<R>
-
public interface SocketServicer<R>Services theSocket.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidrelease()Releases thisSocketServicerfrom use.voidservice(StreamBuffer<java.nio.ByteBuffer> readBuffer, long bytesRead, boolean isNewBuffer)Services theSocket.
-
-
-
Method Detail
-
service
void service(StreamBuffer<java.nio.ByteBuffer> readBuffer, long bytesRead, boolean isNewBuffer)
Services theSocket.- Parameters:
readBuffer-StreamBuffercontaining the just read bytes. Note that this could be the sameStreamBufferas previous, with just further bytes written.bytesRead- Number of bytes read.isNewBuffer- Indicates if theStreamBufferis a newStreamBuffer. Due toStreamBufferPool, the sameStreamBuffermay be re-used. This flag indicates if a newStreamBufferwith new data, even if sameStreamBufferinstance.
-
release
default void release()
Releases thisSocketServicerfrom use.
-
-