@ProviderType
public interface AMAsyncProcessor<M,T>
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.
Modifier and Type | Method and Description |
---|---|
void |
triggerCleanUp(M model,
java.lang.String modelId)
Asynchronously removes any generated media from the model.
|
void |
triggerProcess(M model,
java.lang.String modelId)
Asynchronously generates the media for the model.
|
void triggerCleanUp(M model, java.lang.String modelId) throws com.liferay.portal.kernel.exception.PortalException
model
- the model from which to remove all generated mediamodelId
- the model's IDcom.liferay.portal.kernel.exception.PortalException
- if an error occurred while calling any Liferay
servicesvoid triggerProcess(M model, java.lang.String modelId) throws com.liferay.portal.kernel.exception.PortalException
model
- the model for which media is generatedmodelId
- the model's IDcom.liferay.portal.kernel.exception.PortalException
- if an error occurred while calling any Liferay
services