com.atlassian.jira.service
Interface ServiceManager.ServiceScheduleSkipper

All Known Implementing Classes:
DefaultServiceManager.ServiceScheduleSkipperImpl
Enclosing interface:
ServiceManager

public static interface ServiceManager.ServiceScheduleSkipper

This interface provides capability for other processes to request a service run.

Since:
v3.10

Method Summary
 boolean addService(java.lang.Long serviceId)
          Adds a service with a given id to this skipper
 void awaitServiceRun(java.lang.Long serviceId)
          Await this service being run.
 

Method Detail

addService

boolean addService(java.lang.Long serviceId)
Adds a service with a given id to this skipper

Parameters:
serviceId - service id
Returns:
true if service was not in this skipper already, false otherwise

awaitServiceRun

void awaitServiceRun(java.lang.Long serviceId)
                     throws java.lang.InterruptedException
Await this service being run.

Parameters:
serviceId - Service ID
Throws:
java.lang.InterruptedException - if the current thread was interrupted while waiting


Copyright © 2002-2010 Atlassian. All Rights Reserved.