public static final class Descriptor.Call<Request,Response>
extends Object
Modifier and Type | Field and Description |
---|---|
static Descriptor.Call<akka.NotUsed,akka.NotUsed> |
NONE |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<Boolean> |
autoAcl()
Whether this service call should automatically define an ACL for the router to route external calls to it.
|
Descriptor.CallId |
callId()
Get the id for the call.
|
java.util.Optional<CircuitBreaker> |
circuitBreaker()
Get the circuit breaker.
|
boolean |
equals(Object o) |
int |
hashCode() |
MessageSerializer<Request,?> |
requestSerializer()
Get the request message serializer.
|
MessageSerializer<Response,?> |
responseSerializer()
Get the response message serializer.
|
Descriptor.ServiceCallHolder |
serviceCallHolder()
A holder for the service call.
|
String |
toString() |
Descriptor.Call<Request,Response> |
withAutoAcl(boolean autoAcl)
Return a copy of this call descriptor with autoAcl configured.
|
Descriptor.Call<Request,Response> |
withCallId(Descriptor.CallId callId)
Return a copy of this call descriptor with the given service call ID configured.
|
Descriptor.Call<Request,Response> |
withCircuitBreaker(CircuitBreaker circuitBreaker)
Return a copy of this call descriptor with the given circuit breaker mode configured.
|
Descriptor.Call<Request,Response> |
withRequestSerializer(MessageSerializer<Request,?> requestSerializer)
Return a copy of this call descriptor with the given request message
serializer configured.
|
Descriptor.Call<Request,Response> |
withResponseSerializer(MessageSerializer<Response,?> responseSerializer)
Return a copy of this call descriptor with the given response message
serializer configured.
|
Descriptor.Call<Request,Response> |
withServiceCallHolder(Descriptor.ServiceCallHolder serviceCallHolder)
Return a copy of this call descriptor with the given service call holder configured.
|
public static final Descriptor.Call<akka.NotUsed,akka.NotUsed> NONE
public Descriptor.CallId callId()
public Descriptor.ServiceCallHolder serviceCallHolder()
public MessageSerializer<Request,?> requestSerializer()
public MessageSerializer<Response,?> responseSerializer()
public java.util.Optional<CircuitBreaker> circuitBreaker()
public java.util.Optional<Boolean> autoAcl()
public Descriptor.Call<Request,Response> withCallId(Descriptor.CallId callId)
callId
- The call id.public Descriptor.Call<Request,Response> withServiceCallHolder(Descriptor.ServiceCallHolder serviceCallHolder)
serviceCallHolder
- The service call holder.public Descriptor.Call<Request,Response> withRequestSerializer(MessageSerializer<Request,?> requestSerializer)
requestSerializer
- The request serializer.public Descriptor.Call<Request,Response> withResponseSerializer(MessageSerializer<Response,?> responseSerializer)
responseSerializer
- The response serializer.public Descriptor.Call<Request,Response> withCircuitBreaker(CircuitBreaker circuitBreaker)
circuitBreaker
- The circuit breaker mode.public Descriptor.Call<Request,Response> withAutoAcl(boolean autoAcl)
autoAcl
- Whether an ACL will automatically be generated for the gateway to route calls to this service.public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object