Package io.airlift.drift.transport
Class MethodMetadata
java.lang.Object
io.airlift.drift.transport.MethodMetadata
-
Constructor Summary
ConstructorsConstructorDescriptionMethodMetadata(String name, List<ParameterMetadata> parameters, ThriftCodec<Object> resultCodec, Map<Short, ThriftCodec<Object>> exceptionCodecs, Map<Short, Optional<Boolean>> exceptionRetryable, boolean oneway, boolean idempotent) -
Method Summary
Modifier and TypeMethodDescriptiongetExceptionId(Class<? extends Throwable> exceptionType) getName()getParameterByFieldId(short fieldId) isExceptionRetryable(short exceptionId) booleanbooleanisOneway()static MethodMetadatatoMethodMetadata(ThriftCodecManager codecManager, ThriftMethodMetadata metadata) toString()
-
Constructor Details
-
MethodMetadata
public MethodMetadata(String name, List<ParameterMetadata> parameters, ThriftCodec<Object> resultCodec, Map<Short, ThriftCodec<Object>> exceptionCodecs, Map<Short, Optional<Boolean>> exceptionRetryable, boolean oneway, boolean idempotent)
-
-
Method Details
-
toMethodMetadata
public static MethodMetadata toMethodMetadata(ThriftCodecManager codecManager, ThriftMethodMetadata metadata) -
getName
-
getParameters
-
getParameterByFieldId
-
getResultCodec
-
getExceptionCodecs
-
getExceptionId
-
isExceptionRetryable
-
isOneway
public boolean isOneway() -
isIdempotent
public boolean isIdempotent() -
toString
-