Class Connection
java.lang.Object
kieker.analysis.generic.source.tcp.Connection
public class Connection
extends java.lang.Object
Represents one connection to read records from.
- Since:
- 1.15
- Author:
- Reiner Jung
-
Constructor Summary
Constructors Constructor Description Connection(java.nio.channels.SocketChannel channel, int bufferSize)Create a connection for the given channel and utilizing the specified buffer size. -
Method Summary
Modifier and Type Method Description java.nio.ByteBuffergetBuffer()java.nio.channels.SocketChannelgetChannel()ReaderRegistry<java.lang.String>getRegistry()IValueDeserializergetValueDeserializer()booleanisError()voidsetError(boolean error)
-
Constructor Details
-
Connection
public Connection(java.nio.channels.SocketChannel channel, int bufferSize)Create a connection for the given channel and utilizing the specified buffer size.- Parameters:
channel- connection channel used to read databufferSize- buffer size for reading information
-
-
Method Details
-
getRegistry
-
getChannel
public java.nio.channels.SocketChannel getChannel() -
getBuffer
public java.nio.ByteBuffer getBuffer() -
getValueDeserializer
-
setError
public void setError(boolean error) -
isError
public boolean isError()
-