Package org.apache.arrow.flight
Interface FlightProducer.CallContext
- Enclosing interface:
- FlightProducer
public static interface FlightProducer.CallContext
Call-specific context.
-
Method Summary
Modifier and TypeMethodDescriptionGet an immutable map of middleware for this call.<T extends FlightServerMiddleware>
TGet the middleware instance of the given type for this call.boolean
Whether the call has been cancelled by the client.The identity of the authenticated peer.
-
Method Details
-
peerIdentity
String peerIdentity()The identity of the authenticated peer. May be the empty string if unknown. -
isCancelled
boolean isCancelled()Whether the call has been cancelled by the client. -
getMiddleware
Get the middleware instance of the given type for this call.Returns null if not found.
-
getMiddleware
Map<FlightServerMiddleware.Key<?>,FlightServerMiddleware> getMiddleware()Get an immutable map of middleware for this call.
-