Class DelegationTokenReceiverRepository


  • @Internal
    public class DelegationTokenReceiverRepository
    extends Object
    Repository for delegation token receivers.
    • Constructor Detail

      • DelegationTokenReceiverRepository

        public DelegationTokenReceiverRepository​(Configuration configuration,
                                                 @Nullable
                                                 PluginManager pluginManager)
    • Method Detail

      • onNewTokensObtained

        public void onNewTokensObtained​(byte[] containerBytes)
                                 throws Exception
        Callback function when new delegation tokens obtained.
        Parameters:
        containerBytes - Serialized form of a DelegationTokenContainer. All the available tokens will be forwarded to the appropriate DelegationTokenReceiver based on service name.
        Throws:
        Exception
      • onNewTokensObtained

        public void onNewTokensObtained​(DelegationTokenContainer container)
                                 throws Exception
        Callback function when new delegation tokens obtained.
        Parameters:
        container - Serialized form of delegation tokens stored in DelegationTokenContainer. All the available tokens will be forwarded to the appropriate DelegationTokenReceiver based on service name.
        Throws:
        Exception