Interface ChannelProvider

  • All Known Implementing Classes:
    RPCChannelProvider

    public interface ChannelProvider
    Interface implemented by code that can provide access to the record to which a channel connects.
    Author:
    mrk
    • Method Detail

      • destroy

        void destroy()
        Terminate.
      • getProviderName

        String getProviderName()
        Get the provider name.
        Returns:
        The name.
      • channelFind

        ChannelFind channelFind​(String channelName,
                                ChannelFindRequester channelFindRequester)
        Find a channel.
        Parameters:
        channelName - The channel name.
        channelFindRequester - The requester.
        Returns:
        An interface for the find.
      • channelList

        ChannelFind channelList​(ChannelListRequester channelListRequester)
        Find a channel.
        Parameters:
        channelListRequester - The requester.
        Returns:
        An interface for the find.
      • createChannel

        Channel createChannel​(String channelName,
                              ChannelRequester channelRequester,
                              short priority)
        Create a channel.
        Parameters:
        channelName - The name of the channel.
        channelRequester - The requester.
        priority - channel priority, must be PRIORITY_MIN ≤ priority ≤ PRIORITY_MAX.
        Returns:
        Channel instance. If channel does not exist null is returned and channelRequester notified.
      • createChannel

        Channel createChannel​(String channelName,
                              ChannelRequester channelRequester,
                              short priority,
                              String address)
        Create a channel.
        Parameters:
        channelName - The name of the channel.
        channelRequester - The requester.
        priority - channel priority, must be PRIORITY_MIN ≤ priority ≤ PRIORITY_MAX.
        address - address (or list of addresses) where to look for a channel. Implementation independent string.
        Returns:
        Channel instance. If channel does not exist null is returned and channelRequester notified.