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, [EMAIL PROTECTED] #run()} method will always return immediately. - * To start this task again after calling this method, you have to create a new instance of - * [EMAIL PROTECTED] IdleStatusChecker} again. - */ - void cancel(); - } - - private class NotifyingTaskImpl implements NotifyingTask { + public class NotifyingTask implements Runnable { private volatile boolean cancelled; private volatile Thread thread;