public final class ThriftServiceMetadata
extends java.lang.Object
Constructor and Description |
---|
ThriftServiceMetadata(java.lang.Class<?> serviceType)
Creates a new instance from a single Thrift service interface.
|
ThriftServiceMetadata(java.lang.Object implementation)
Creates a new instance from a Thrift service implementation that implements one or more Thrift service
interfaces.
|
Modifier and Type | Method and Description |
---|---|
ThriftFunction |
function(java.lang.String method)
Returns the
ThriftFunction that provides the metadata of the specified Thrift function. |
java.util.Set<java.lang.Class<?>> |
interfaces()
Returns the Thrift service interfaces implemented.
|
public ThriftServiceMetadata(java.lang.Object implementation)
public ThriftServiceMetadata(java.lang.Class<?> serviceType)
public java.util.Set<java.lang.Class<?>> interfaces()
public ThriftFunction function(java.lang.String method)
ThriftFunction
that provides the metadata of the specified Thrift function.ThriftFunction
. null
if there's no such function.