Class Result.CompatibleResult

java.lang.Object
com.alibaba.dubbo.rpc.Result.CompatibleResult
All Implemented Interfaces:
Result, Serializable, org.apache.dubbo.rpc.Result
Enclosing interface:
Result

public static class Result.CompatibleResult extends Object implements Result
See Also:
  • Constructor Details

    • CompatibleResult

      public CompatibleResult(org.apache.dubbo.rpc.Result result)
  • Method Details

    • getDelegate

      public org.apache.dubbo.rpc.Result getDelegate()
    • whenCompleteWithContext

      public org.apache.dubbo.rpc.Result whenCompleteWithContext(BiConsumer<org.apache.dubbo.rpc.Result,Throwable> fn)
      Specified by:
      whenCompleteWithContext in interface org.apache.dubbo.rpc.Result
    • getValue

      public Object getValue()
      Specified by:
      getValue in interface org.apache.dubbo.rpc.Result
    • setValue

      public void setValue(Object value)
      Specified by:
      setValue in interface Result
      Specified by:
      setValue in interface org.apache.dubbo.rpc.Result
    • getException

      public Throwable getException()
      Specified by:
      getException in interface org.apache.dubbo.rpc.Result
    • setException

      public void setException(Throwable t)
      Specified by:
      setException in interface Result
      Specified by:
      setException in interface org.apache.dubbo.rpc.Result
    • hasException

      public boolean hasException()
      Specified by:
      hasException in interface org.apache.dubbo.rpc.Result
    • recreate

      public Object recreate() throws Throwable
      Specified by:
      recreate in interface org.apache.dubbo.rpc.Result
      Throws:
      Throwable
    • getAttachments

      public Map<String,String> getAttachments()
      Specified by:
      getAttachments in interface org.apache.dubbo.rpc.Result
    • addAttachments

      public void addAttachments(Map<String,String> map)
      Specified by:
      addAttachments in interface org.apache.dubbo.rpc.Result
    • setAttachments

      public void setAttachments(Map<String,String> map)
      Specified by:
      setAttachments in interface org.apache.dubbo.rpc.Result
    • getAttachment

      public String getAttachment(String key)
      Specified by:
      getAttachment in interface org.apache.dubbo.rpc.Result
    • getAttachment

      public String getAttachment(String key, String defaultValue)
      Specified by:
      getAttachment in interface org.apache.dubbo.rpc.Result
    • setAttachment

      public void setAttachment(String key, String value)
      Specified by:
      setAttachment in interface org.apache.dubbo.rpc.Result
    • setAttachment

      public void setAttachment(String key, Object value)
      Specified by:
      setAttachment in interface org.apache.dubbo.rpc.Result
    • setObjectAttachment

      public void setObjectAttachment(String key, Object value)
      Specified by:
      setObjectAttachment in interface org.apache.dubbo.rpc.Result
    • thenApply

      public <U> CompletableFuture<U> thenApply(Function<org.apache.dubbo.rpc.Result,? extends U> fn)
      Specified by:
      thenApply in interface org.apache.dubbo.rpc.Result
    • get

      public org.apache.dubbo.rpc.Result get() throws InterruptedException, ExecutionException
      Specified by:
      get in interface org.apache.dubbo.rpc.Result
      Throws:
      InterruptedException
      ExecutionException
    • get

      public org.apache.dubbo.rpc.Result get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
      Specified by:
      get in interface org.apache.dubbo.rpc.Result
      Throws:
      InterruptedException
      ExecutionException
      TimeoutException