use of com.zimbra.cs.store.IncomingBlob in project zm-mailbox by Zimbra.
the class StoreManagerBasedTempBlobStore method deleteIncoming.
// BlobStore API
@Override
public void deleteIncoming(IncomingBlob ib) {
IncomingBlob myIb = ib;
synchronized (incomingBlobs) {
IncomingBlob existingBlob = incomingBlobs.remove(myIb.getId());
assert existingBlob == null || existingBlob == myIb : "Wrong blob removed: " + myIb.getId();
}
myIb.cancel();
}
use of com.zimbra.cs.store.IncomingBlob in project zm-mailbox by Zimbra.
the class PatchStore method createIncomingPatch.
/**
* Creates the incoming patch.
*
* @param accountId The if of the account to associate the patch with.
*
* @return IncomingPatch instance.
*
* @throws IOException Signals that an I/O exception has occurred.
* @throws ServiceException the service exception
*/
public IncomingPatch createIncomingPatch(String accountId) throws IOException, ServiceException {
IncomingBlob ib = blobStore.createIncoming(null);
IncomingPatch ip = new IncomingPatch(ib, accountId);
ib.setContext(ip);
return ip;
}
Aggregations