@Override
    public T getData() {
      return data;
    }
Instantiates a new InMemory task.

@param queue the queue
@param data the data
services/tasks/src/main/java/org/hyperledger/besu/services/tasks/InMemoryTaskQueue.java