You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by el...@apache.org on 2008/10/27 17:11:52 UTC
svn commit: r708228 -
/mina/trunk/core/src/main/java/org/apache/mina/core/session/IdleStatusChecker.java
Author: elecharny
Date: Mon Oct 27 09:11:51 2008
New Revision: 708228
URL: http://svn.apache.org/viewvc?rev=708228&view=rev
Log:
Removed the useless inner Invokedtask interface, and renamed the InvokedTaskImpl to InvokedTask.
Modified:
mina/trunk/core/src/main/java/org/apache/mina/core/session/IdleStatusChecker.java
Modified: mina/trunk/core/src/main/java/org/apache/mina/core/session/IdleStatusChecker.java
URL: http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mina/core/session/IdleStatusChecker.java?rev=708228&r1=708227&r2=708228&view=diff
==============================================================================
--- mina/trunk/core/src/main/java/org/apache/mina/core/session/IdleStatusChecker.java (original)
+++ mina/trunk/core/src/main/java/org/apache/mina/core/session/IdleStatusChecker.java Mon Oct 27 09:11:51 2008
@@ -42,7 +42,7 @@
private final Set<AbstractIoService> services =
new ConcurrentHashSet<AbstractIoService>();
- private final NotifyingTask notifyingTask = new NotifyingTaskImpl();
+ private final NotifyingTask notifyingTask = new NotifyingTask();
private final IoFutureListener<IoFuture> sessionCloseListener =
new SessionCloseListener();
@@ -69,16 +69,7 @@
return notifyingTask;
}
- public interface NotifyingTask extends Runnable {
- /**
- * Cancels this task. Once canceled, {@link #run()} method will always return immediately.
- * To start this task again after calling this method, you have to create a new instance of
- * {@link IdleStatusChecker} again.
- */
- void cancel();
- }
-
- private class NotifyingTaskImpl implements NotifyingTask {
+ public class NotifyingTask implements Runnable {
private volatile boolean cancelled;
private volatile Thread thread;