Class TcpDatagramSocketProvider.DefaultDependencies

    • Field Detail

      • m_delegateSocketProvider

        protected com.oracle.coherence.common.net.SocketProvider m_delegateSocketProvider
        Underlying TCP socket provider
      • m_fBlocking

        protected boolean m_fBlocking
        Specifies if the provider is to produce blocking datagram sockets.
      • m_nAdvanceFrequency

        protected int m_nAdvanceFrequency
        The TcpDatagramSocket advance frequency.
    • Constructor Detail

      • DefaultDependencies

        public DefaultDependencies()
        Construct a DefaultDependencies object.
      • DefaultDependencies

        public DefaultDependencies​(TcpDatagramSocketProvider.Dependencies deps)
        Construct a DefaultDependencies object copying the values from the specified dependencies object
        Parameters:
        deps - the dependencies to copy, or null
    • Method Detail

      • getDelegateSocketProvider

        public com.oracle.coherence.common.net.SocketProvider getDelegateSocketProvider()
        Return the SocketProvider to use in producing the underling sockets which will be wrapped with DatagramSocket.
        Specified by:
        getDelegateSocketProvider in interface TcpDatagramSocketProvider.Dependencies
        Returns:
        the delegate SocketProvider
      • isBlocking

        public boolean isBlocking()
        Check if datagram sockets should be blocking the use of "blocking" datagram sockets is not meant for production use and this setting should remain undocumented
        Specified by:
        isBlocking in interface TcpDatagramSocketProvider.Dependencies
        Returns:
        true if use blocking sockets
      • setBlocking

        @Injectable("blocking")
        public void setBlocking​(boolean fBlocking)
        Set if datagram socket is blocking
        Parameters:
        fBlocking -
      • setAdvanceFrequency

        @Injectable("advance-frequency")
        public void setAdvanceFrequency​(int frequency)
        Set frequency for datagram socket
        Parameters:
        frequency -
      • ensureArgument

        protected static void ensureArgument​(Object o,
                                             String sName)
        Ensure that the specified object is non-null
        Parameters:
        o - the object to ensure
        sName - the name of the corresponding parameter
        Throws:
        IllegalArgumentException - if o is null