ome.services.throttling
Class Adapter

java.lang.Object
  extended by ome.services.throttling.Task
      extended by ome.services.throttling.Adapter

public class Adapter
extends Task

Simple adapter which takes a Executor.Work instance and executes it as a BlitzExecutor task. All exceptions are caught and routed to via the #exception(Exception) method to the provided callback.


Field Summary
 
Fields inherited from class ome.services.throttling.Task
cb, current, exception, isVoid, response
 
Constructor Summary
Adapter(Object callback, Ice.Current current, IceMapper mapper, Executor ex, Principal p, Executor.Work work)
           
 
Method Summary
 void run(OmeroContext ctx)
           
 
Methods inherited from class ome.services.throttling.Task
exception, response, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Adapter

public Adapter(Object callback,
               Ice.Current current,
               IceMapper mapper,
               Executor ex,
               Principal p,
               Executor.Work work)
Method Detail

run

public void run(OmeroContext ctx)
Specified by:
run in class Task


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

Copyright © 2009 The University of Dundee. All Rights Reserved.