ome.services.throttling
Class Adapter

java.lang.Object
  extended by ome.services.throttling.Task
      extended by ome.services.throttling.Adapter
All Implemented Interfaces:
Runnable

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()
           
 
Methods inherited from class ome.services.throttling.Task
exception, response
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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()
Specified by:
run in interface Runnable
Specified by:
run in class Task


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

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