public abstract class Response<T> extends Object implements AutoCloseable
request
which contains a response value (T), and optionally some sort of side-effect,
like transaction stream
or transaction oglibation
.Modifier and Type | Class and Description |
---|---|
static interface |
Response.Handler
Handler of the transaction data part of a response.
|
Constructor and Description |
---|
Response(T response,
org.neo4j.kernel.impl.store.StoreId storeId,
ResourceReleaser releaser) |
Modifier and Type | Method and Description |
---|---|
abstract void |
accept(Response.Handler handler) |
void |
close() |
static <T> Response<T> |
empty() |
org.neo4j.kernel.impl.store.StoreId |
getStoreId() |
abstract boolean |
hasTransactionsToBeApplied() |
T |
response() |
public Response(T response, org.neo4j.kernel.impl.store.StoreId storeId, ResourceReleaser releaser)
public T response() throws ServerFailureException
ServerFailureException
public org.neo4j.kernel.impl.store.StoreId getStoreId()
public void close()
close
in interface AutoCloseable
public static <T> Response<T> empty()
public abstract void accept(Response.Handler handler) throws Exception
Exception
public abstract boolean hasTransactionsToBeApplied()
true
if this response has transactions to be applied as part of unpacking it,
otherwise false
.Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.