Author: borges
Date: 2011-07-27 13:29:18 -0400 (Wed, 27 Jul 2011)
New Revision: 11057
Modified:
branches/HORNETQ-720_Replication/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/AIOSequentialFile.java
Log:
throw the right kind of exception.
Modified:
branches/HORNETQ-720_Replication/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/AIOSequentialFile.java
===================================================================
---
branches/HORNETQ-720_Replication/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/AIOSequentialFile.java 2011-07-27
17:28:44 UTC (rev 11056)
+++
branches/HORNETQ-720_Replication/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/AIOSequentialFile.java 2011-07-27
17:29:18 UTC (rev 11057)
@@ -26,9 +26,9 @@
import org.hornetq.core.logging.Logger;
/**
- *
+ *
* A AIOSequentialFile
- *
+ *
* @author <a href="mailto:clebert.suconic@jboss.com">Clebert
Suconic</a>
*
*/
@@ -227,7 +227,7 @@
public void sync() throws Exception
{
- throw new IllegalArgumentException("This method is not supported on
AIO");
+ throw new UnsupportedOperationException("This method is not supported on
AIO");
}
public long size() throws Exception
@@ -268,7 +268,7 @@
}
/**
- *
+ *
* @param sync Not used on AIO
* */
public void writeDirect(final ByteBuffer bytes, final boolean sync, final IOAsyncTask
callback)
Show replies by date