Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rice.environment.processing
Class WorkRequest<R>

    java.lang.Object
      rice.environment.processing.WorkRequest<R>

All Implemented Interfaces:
  java.lang.Runnable

    public abstract class WorkRequest<R>

extends java.lang.Object
implements java.lang.Runnable

Extend this class and implement doWork() if you need to do blocking disk IO. This is primarily used by Persistence.

Author:
  Jeff Hoye

Constructor Summary
`WorkRequest()`
`WorkRequest(Continuation<R,java.lang.Exception> c, SelectorManager sm)`

Method Summary
`abstract R` | `doWork()`
`void` | `returnError(java.lang.Exception e)`
`void` | `returnResult(R o)`
`void` | `run()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### WorkRequest

    public WorkRequest(Continuation<R,java.lang.Exception> c,
                       SelectorManager sm)

### WorkRequest

    public WorkRequest()

Method Detail

### returnResult

    public void returnResult(R o)

### returnError

    public void returnError(java.lang.Exception e)

### run

    public void run()

  Specified by:
    `run` in interface `java.lang.Runnable`

### doWork

    public abstract R doWork()
                      throws java.lang.Exception

  Throws:
    `java.lang.Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.