diff --git a/core/java/src/net/i2p/data/i2cp/I2CPMessageReader.java b/core/java/src/net/i2p/data/i2cp/I2CPMessageReader.java index 461c4b08a4f9dbf25de23be53c896e406e818540..057892b65fde0b8bf9976c7ade0d3044a0b36f0c 100644 --- a/core/java/src/net/i2p/data/i2cp/I2CPMessageReader.java +++ b/core/java/src/net/i2p/data/i2cp/I2CPMessageReader.java @@ -60,7 +60,7 @@ public class I2CPMessageReader { /** * Have the already started reader pause its reading indefinitely - * + * @deprecated unused */ public void pauseReading() { _reader.pauseRunner(); @@ -68,7 +68,7 @@ public class I2CPMessageReader { /** * Resume reading after a pause - * + * @deprecated unused */ public void resumeReading() { _reader.resumeRunner(); @@ -123,10 +123,12 @@ public class I2CPMessageReader { _stayAlive = true; } + /** deprecated unused */ public void pauseRunner() { _doRun = false; } + /** deprecated unused */ public void resumeRunner() { _doRun = true; } diff --git a/router/java/src/net/i2p/data/i2np/I2NPMessageReader.java b/router/java/src/net/i2p/data/i2np/I2NPMessageReader.java index 68dabbcc711cc6f47fbef064ff9f23c0a4a11286..fd3e7063bd290ded9ab4cfcaac8d752fb6138f09 100644 --- a/router/java/src/net/i2p/data/i2np/I2NPMessageReader.java +++ b/router/java/src/net/i2p/data/i2np/I2NPMessageReader.java @@ -56,16 +56,19 @@ public class I2NPMessageReader { * */ public void startReading() { _readerThread.start(); } + /** * Have the already started reader pause its reading indefinitely - * + * @deprecated unused */ public void pauseReading() { _reader.pauseRunner(); } + /** * Resume reading after a pause - * + * @deprecated unused */ public void resumeReading() { _reader.resumeRunner(); } + /** * Cancel reading. * @@ -106,8 +109,13 @@ public class I2NPMessageReader { _stayAlive = true; _handler = new I2NPMessageHandler(_context); } + + /** deprecated unused */ public void pauseRunner() { _doRun = false; } + + /** deprecated unused */ public void resumeRunner() { _doRun = true; } + public void cancelRunner() { _doRun = false; _stayAlive = false;