/*******************************************************************************
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * Copyright (c) 2007, 2018 Association for Decentralized Information Management
* in Industry THTH ry.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* @see AsyncProcedure
* @see Session
*/
-public interface AsyncRead<Result> extends Request {
+@FunctionalInterface
+public interface AsyncRead<Result> {
/**
* When a <code>GraphRequest</code> is serviced by the database session
* be cancelled and any changes rolled back
*/
void perform(AsyncReadGraph graph, AsyncProcedure<Result> procedure);
- int getFlags();
-
- }
+
+ default int getFlags() {
+ return 0;
+ }
+
+ default int threadHash() {
+ return hashCode();
+ }
+
+}