Skip to content
Snippets Groups Projects
Commit fc81eaec authored by Florian Fittkau's avatar Florian Fittkau
Browse files

minor TODOs

parent cbe4feb1
No related branches found
No related tags found
No related merge requests found
...@@ -24,10 +24,7 @@ public class TCPConnector extends AbstractSink implements IWriter, IStringRecord ...@@ -24,10 +24,7 @@ public class TCPConnector extends AbstractSink implements IWriter, IStringRecord
private SocketChannel socketChannel; private SocketChannel socketChannel;
private final StringRegistry stringRegistry = new StringRegistry(this); // TODO private final StringRegistry stringRegistry = new StringRegistry(this);
// clear
// after
// disconnect?
private final ByteBuffer buffer = ByteBuffer private final ByteBuffer buffer = ByteBuffer
.allocateDirect(Constants.MONITORING_MESSAGE_BUFFER_SIZE); .allocateDirect(Constants.MONITORING_MESSAGE_BUFFER_SIZE);
...@@ -107,7 +104,6 @@ public class TCPConnector extends AbstractSink implements IWriter, IStringRecord ...@@ -107,7 +104,6 @@ public class TCPConnector extends AbstractSink implements IWriter, IStringRecord
doDisconnectIfNessecary(); doDisconnectIfNessecary();
} catch (final IOException e) { } catch (final IOException e) {
System.out.println("WARNING: Connection was closed - possible data loss"); System.out.println("WARNING: Connection was closed - possible data loss");
// TODO reconnect in non-load-balancing mode
try { try {
socketChannel.close(); socketChannel.close();
} catch (final IOException e1) { } catch (final IOException e1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment