diff options
| author | Robert Godfrey <rgodfrey@apache.org> | 2008-05-27 12:48:01 +0000 |
|---|---|---|
| committer | Robert Godfrey <rgodfrey@apache.org> | 2008-05-27 12:48:01 +0000 |
| commit | 9591ca6d7ccf622941d7642346f89dddf06bdef2 (patch) | |
| tree | c572863362bd196e0295a5fee81f876df5080696 /java | |
| parent | 980643b9364f2ec7e75f9e4a391754f5db4bc24a (diff) | |
| download | qpid-python-9591ca6d7ccf622941d7642346f89dddf06bdef2.tar.gz | |
Missed one...
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/broker-queue-refactor@660494 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
| -rw-r--r-- | java/common/src/main/java/org/apache/qpid/pool/Job.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/java/common/src/main/java/org/apache/qpid/pool/Job.java b/java/common/src/main/java/org/apache/qpid/pool/Job.java index d65fce0fd0..00da005515 100644 --- a/java/common/src/main/java/org/apache/qpid/pool/Job.java +++ b/java/common/src/main/java/org/apache/qpid/pool/Job.java @@ -50,7 +50,7 @@ import org.apache.mina.common.IoSession; * * @todo For better re-usability could make the completion handler optional. Only run it when one is set. */ -public class Job implements Runnable +public class Job implements ReadWriteRunnable { /** The maximum number of events to process per run of the job. More events than this may be queued in the job. */ private final int _maxEvents; @@ -166,6 +166,17 @@ public class Job implements Runnable return _readJob; } + public boolean isRead() + { + return _readJob; + } + + public boolean isWrite() + { + return !_readJob; + } + + /** * Another interface for a continuation. * |
