Code example for RemovalNotification

Methods: getCausegetKeygetValue

0
    this.executorService = executorService;
  } 
 
  @Override 
  public void onRemoval(RemovalNotification<QueryHandle, OperationInfo> notification) {
    LOG.trace("Got removal notification for handle {} with cause {}", notification.getKey(), notification.getCause());
    executorService.submit(new ResourceCleanup(notification.getKey(), notification.getValue()));
  } 
 
  private class ResourceCleanup implements Runnable {
    private final QueryHandle handle;
    private final OperationInfo opInfo;
 
    private ResourceCleanup(QueryHandle handle, OperationInfo opInfo) {
      this.handle = handle;
      this.opInfo = opInfo;
    } 
 
    @Override 
    public void run() { 
Contextual code suggestions in your IDE  Get Codota for Java