Interface AMAsyncProcessor<M,T>
@ProviderType
public interface AMAsyncProcessor<M,T>
Generates a specific type of media asynchronously.
This processor delegates the generation of the media in AMProcessor
by invoking it in an asynchronous manner.
The type parameter M specifies the model used by the processor
to generate the media. The type parameter T restricts the valid
AMAttribute set available.
-
Method Summary
Modifier and TypeMethodDescriptionvoidtriggerCleanUp(M model, String modelId) Asynchronously removes any generated media from the model.voidtriggerProcess(M model, String modelId) Asynchronously generates the media for the model.
-
Method Details
-
triggerCleanUp
void triggerCleanUp(M model, String modelId) throws com.liferay.portal.kernel.exception.PortalException Asynchronously removes any generated media from the model.- Parameters:
model- the model from which to remove all generated mediamodelId- the model's ID- Throws:
com.liferay.portal.kernel.exception.PortalException- if an error occurred while calling any Liferay services
-
triggerProcess
void triggerProcess(M model, String modelId) throws com.liferay.portal.kernel.exception.PortalException Asynchronously generates the media for the model.- Parameters:
model- the model for which media is generatedmodelId- the model's ID- Throws:
com.liferay.portal.kernel.exception.PortalException- if an error occurred while calling any Liferay services
-