@Override
@Async
public Future<Void> processStorageUnitNotificationEventAsync(NotificationEventTypeEntity.EventTypesStorageUnit notificationEventType,
BusinessObjectDataKey businessObjectDataKey, String storageName, String newStorageUnitStatus, String oldStorageUnitStatus)
{
/*
* Need to clear the security context here since the current thread may have been reused, which may might have left over its security context. If we do
* not clear the security context, any subsequent calls may be restricted by the permissions given to the previous thread's security context.
*/
SecurityContextHolder.clearContext();
processStorageUnitNotificationEventSync(notificationEventType, businessObjectDataKey, storageName, newStorageUnitStatus, oldStorageUnitStatus);
// Return an AsyncResult so callers will know the future is "done". They can call "isDone" to know when this method has completed and they
// can call "get" to see if any exceptions were thrown.
return new AsyncResult<>(null);
}
NotificationEventServiceImpl.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:herd
作者:
评论列表
文章目录