Class TestTokenAuthentication.NonShadedBlockingRpcCallback<R>

java.lang.Object
org.apache.hadoop.hbase.security.token.TestTokenAuthentication.NonShadedBlockingRpcCallback<R>
All Implemented Interfaces:
com.google.protobuf.RpcCallback<R>
Enclosing class:
TestTokenAuthentication

private static class TestTokenAuthentication.NonShadedBlockingRpcCallback<R> extends Object implements com.google.protobuf.RpcCallback<R>
A copy of the BlockingRpcCallback class for use locally. Only difference is that it makes use of non-shaded protobufs; i.e. refers to com.google.protobuf.* rather than to org.apache.hbase.thirdparty.com.google.protobuf.*
  • Field Details

  • Constructor Details

  • Method Details

    • run

      public void run(R parameter)
      Called on completion of the RPC call with the response object, or null in the case of an error.
      Specified by:
      run in interface com.google.protobuf.RpcCallback<R>
      Parameters:
      parameter - the response object or null if an error occurred
    • get

      public R get() throws IOException
      Returns the parameter passed to run(Object) or null if a null value was passed. When used asynchronously, this method will block until the run(Object) method has been called.
      Returns:
      the response object or null if no response was passed
      Throws:
      IOException