Oracle NoSQL Database Examples
version 11gR2.2.0.26

schema
Class WriteOperations.WriteOp<R,E extends Exception>

java.lang.Object
  extended by schema.WriteOperations.WriteOp<R,E>
Enclosing class:
WriteOperations

abstract class WriteOperations.WriteOp<R,E extends Exception>
extends Object

Internal class used to perform retries for a write operation.


Constructor Summary
WriteOperations.WriteOp(long timeout, TimeUnit timeoutUnit)
          Creates the write operation with the requested timeout parameters.
 
Method Summary
(package private) abstract  R doWrite(long tmOutMS)
          Implemented for each write operation.
(package private)  R run()
          Calls the doWrite method and perform retries when a FaultException is thrown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteOperations.WriteOp

WriteOperations.WriteOp(long timeout,
                        TimeUnit timeoutUnit)
Creates the write operation with the requested timeout parameters.

Method Detail

doWrite

abstract R doWrite(long tmOutMS)
            throws FaultException,
                   E extends Exception
Implemented for each write operation.

Parameters:
tmOutMS - the timeout in milliseconds to use for this attempt of the write operation.
Throws:
FaultException
E extends Exception

run

R run()
throws FaultException,
       E extends Exception
Calls the doWrite method and perform retries when a FaultException is thrown.

Throws:
FaultException
E extends Exception

Oracle NoSQL Database Examples
version 11gR2.2.0.26

Copyright (c) 2011, 2013 Oracle and/or its affiliates. All rights reserved.