org.jboss.messaging.core.journal.impl
Class SimpleWaitIOCallback

java.lang.Object
  extended by org.jboss.messaging.core.journal.impl.SimpleWaitIOCallback
All Implemented Interfaces:
AIOCallback, IOCallback

public class SimpleWaitIOCallback
extends java.lang.Object
implements IOCallback

A SimpleWaitIOCallback

Author:
Clebert Suconic

Constructor Summary
SimpleWaitIOCallback()
           
 
Method Summary
 void done()
          Leave this method as soon as possible, or you would be blocking the whole notification thread
static IOCallback getInstance()
           
 void onError(int errorCode, java.lang.String errorMessage)
          Observation: The whole file will be probably failing if this happens.
 void waitCompletion()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleWaitIOCallback

public SimpleWaitIOCallback()
Method Detail

getInstance

public static IOCallback getInstance()

done

public void done()
Description copied from interface: AIOCallback
Leave this method as soon as possible, or you would be blocking the whole notification thread

Specified by:
done in interface AIOCallback

onError

public void onError(int errorCode,
                    java.lang.String errorMessage)
Description copied from interface: AIOCallback
Observation: The whole file will be probably failing if this happens. Like, if you delete the file, you will start to get errors for these operations

Specified by:
onError in interface AIOCallback

waitCompletion

public void waitCompletion()
                    throws java.lang.Exception
Specified by:
waitCompletion in interface IOCallback
Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.