Class DeleteNamedViewHandler
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.operation.handler.named.DeleteNamedViewHandler
-
- All Implemented Interfaces:
OperationHandler<DeleteNamedView>
public class DeleteNamedViewHandler extends Object implements OperationHandler<DeleteNamedView>
Operation Handler forDeleteNamedView
which removes a NamedView from the cache.
-
-
Constructor Summary
Constructors Constructor Description DeleteNamedViewHandler(String suffixNamedViewCacheName)
DeleteNamedViewHandler(NamedViewCache cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Void
doOperation(DeleteNamedView namedViewOp, Context context, Store store)
Deletes a NamedView from the NamedViewCache.String
getSuffixCacheName()
-
-
-
Constructor Detail
-
DeleteNamedViewHandler
public DeleteNamedViewHandler(String suffixNamedViewCacheName)
-
DeleteNamedViewHandler
public DeleteNamedViewHandler(NamedViewCache cache)
-
-
Method Detail
-
getSuffixCacheName
public String getSuffixCacheName()
-
doOperation
public Void doOperation(DeleteNamedView namedViewOp, Context context, Store store) throws OperationException
Deletes a NamedView from the NamedViewCache. The user needs only to provide the name of the NamedView they want to delete.- Specified by:
doOperation
in interfaceOperationHandler<DeleteNamedView>
- Parameters:
namedViewOp
- theNamedView
to be removedcontext
- theContext
store
- theStore
the operation should be run on- Returns:
- null (as output of this operation is void)
- Throws:
OperationException
- thrown if the delete from cache fails
-
-