public final class ThriftReply extends ThriftMessage
TBase or TApplicationException) and
its header (TMessage). It is exported to RequestLog.responseContent() when a Thrift call
is processed.| Constructor and Description |
|---|
ThriftReply(TMessage header,
TApplicationException exception)
Creates a new instance that contains a Thrift
TMessageType.EXCEPTION message. |
ThriftReply(TMessage header,
TBase<?,?> result)
Creates a new instance that contains a Thrift
TMessageType.REPLY message. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
TApplicationException |
exception()
Returns the exception of this reply.
|
int |
hashCode() |
boolean |
isException()
Returns
true if the type of this reply is TMessageType.EXCEPTION. |
TBase<?,?> |
result()
Returns the result of this reply.
|
String |
toString() |
headerpublic ThriftReply(TMessage header, TBase<?,?> result)
TMessageType.REPLY message.public ThriftReply(TMessage header, TApplicationException exception)
TMessageType.EXCEPTION message.public boolean isException()
true if the type of this reply is TMessageType.EXCEPTION.public TBase<?,?> result()
IllegalStateException - if the type of this reply is not TMessageType.REPLYpublic TApplicationException exception()
IllegalStateException - if the type of this reply is not TMessageType.EXCEPTIONpublic boolean equals(Object o)
equals in class ThriftMessagepublic int hashCode()
hashCode in class ThriftMessage© Copyright 2015–2017 LINE Corporation. All rights reserved.