public final class MethodMetadata extends Object
| Constructor and Description |
|---|
MethodMetadata(String name,
List<ParameterMetadata> parameters,
ThriftCodec<Object> resultCodec,
Map<Short,ThriftCodec<Object>> exceptionCodecs,
boolean oneway,
boolean idempotent) |
| Modifier and Type | Method and Description |
|---|---|
Map<Short,ThriftCodec<Object>> |
getExceptionCodecs() |
Optional<Short> |
getExceptionId(Class<? extends Throwable> exceptionType) |
String |
getName() |
ParameterMetadata |
getParameterByFieldId(short fieldId) |
List<ParameterMetadata> |
getParameters() |
ThriftCodec<Object> |
getResultCodec() |
boolean |
isIdempotent() |
boolean |
isOneway() |
static MethodMetadata |
toMethodMetadata(ThriftCodecManager codecManager,
ThriftMethodMetadata metadata) |
String |
toString() |
public MethodMetadata(String name, List<ParameterMetadata> parameters, ThriftCodec<Object> resultCodec, Map<Short,ThriftCodec<Object>> exceptionCodecs, boolean oneway, boolean idempotent)
public static MethodMetadata toMethodMetadata(ThriftCodecManager codecManager, ThriftMethodMetadata metadata)
public String getName()
public List<ParameterMetadata> getParameters()
public ParameterMetadata getParameterByFieldId(short fieldId)
public ThriftCodec<Object> getResultCodec()
public Map<Short,ThriftCodec<Object>> getExceptionCodecs()
public boolean isOneway()
public boolean isIdempotent()
Copyright © 2012–2021. All rights reserved.