Package zmq

Class Utils


  • @Deprecated
    public class Utils
    extends java.lang.Object
    Deprecated.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Utils()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static byte[] bytes​(java.nio.ByteBuffer buf)
      Deprecated.
       
      static boolean delete​(java.io.File path)
      Deprecated.
       
      static int findOpenPort()
      Deprecated.
       
      static Address getPeerIpAddress​(java.nio.channels.SocketChannel fd)
      Deprecated.
       
      static byte[] randomBytes​(int length)
      Deprecated.
       
      static int randomInt()
      Deprecated.
       
      static byte[] realloc​(byte[] src, int size)
      Deprecated.
       
      static <T> T[] realloc​(java.lang.Class<T> klass, T[] src, int size, boolean ended)
      Deprecated.
       
      static void unblockSocket​(java.nio.channels.SelectableChannel... channels)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utils

        private Utils()
        Deprecated.
    • Method Detail

      • randomInt

        public static int randomInt()
        Deprecated.
      • randomBytes

        public static byte[] randomBytes​(int length)
        Deprecated.
      • findOpenPort

        public static int findOpenPort()
                                throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • unblockSocket

        public static void unblockSocket​(java.nio.channels.SelectableChannel... channels)
                                  throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • realloc

        public static <T> T[] realloc​(java.lang.Class<T> klass,
                                      T[] src,
                                      int size,
                                      boolean ended)
        Deprecated.
      • bytes

        public static byte[] bytes​(java.nio.ByteBuffer buf)
        Deprecated.
      • realloc

        public static byte[] realloc​(byte[] src,
                                     int size)
        Deprecated.
      • delete

        public static boolean delete​(java.io.File path)
        Deprecated.
      • getPeerIpAddress

        public static Address getPeerIpAddress​(java.nio.channels.SocketChannel fd)
        Deprecated.