org.gcube.common.informationsystem.publisher.impl.instancestates
Class RegistrationPoolExecutor

java.lang.Object
  extended by org.gcube.common.informationsystem.publisher.impl.instancestates.RegistrationPoolExecutor

public final class RegistrationPoolExecutor
extends Object

Asynchronously executes a registration in a pooled thread

Author:
Manuele Simi (ISTI-CNR)

Method Summary
protected static RegistrationPoolExecutor getExecutor()
          Gets the executor for submitting registrations
protected  Future<?> submit(ISPublisherHandler handler)
          Submits a new registration executed at some time in the future
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getExecutor

protected static RegistrationPoolExecutor getExecutor()
Gets the executor for submitting registrations

Returns:
an executor

submit

protected Future<?> submit(ISPublisherHandler handler)
Submits a new registration executed at some time in the future

Parameters:
resourceID - the id of the resource managed by the handler
handler - the registration to execute
Returns:
a Future representing the computation of the handler


Copyright © 2013. All Rights Reserved.