/** Implementation of message sending. */ @Override public void Process() { Object result = null; try { _operationContext.Add(OperationContextFieldName.NoGracefulBlock, true); _cache.Add( _key, _value, _expiryHint, _evictionHint, _group, _subGroup, _queryInfo, _flag, _providerName, _resyncProviderName, _operationContext, null); result = AsyncOpResult.Success; } catch (Exception e) { if (getCacheLog() != null) { getCacheLog().Error("AsyncAdd.Process()", e.getMessage()); } result = e; } finally { CallbackEntry cbEntry = (CallbackEntry) ((_value instanceof CallbackEntry) ? _value : null); if (cbEntry != null && cbEntry.getAsyncOperationCompleteCallback() != null) { _cache.OnAsyncOperationCompleted( AsyncOpCode.Add, new Object[] {_key, cbEntry.getAsyncOperationCompleteCallback(), result}); } } }
/** Implementation of message sending. */ public void Process() { Object result = null; try { _operationContext.Add(OperationContextFieldName.NoGracefulBlock, true); _cache.Clear(_flagMap, _cbEntry, _operationContext); result = AsyncOpResult.Success; } catch (Exception e) { if (getCacheLog() != null) { getCacheLog().Error("AsyncClear.Process()", e.getMessage()); } result = e; } finally { if (_cbEntry != null && _cbEntry.getAsyncOperationCompleteCallback() != null) { _cache.OnAsyncOperationCompleted( AsyncOpCode.Clear, new Object[] {null, _cbEntry.getAsyncOperationCompleteCallback(), result}); } } }
private ILogger getCacheLog() { return _cache.getCacheLog(); }