Class KieModuleCacheHelper


  • public class KieModuleCacheHelper
    extends java.lang.Object
    • Constructor Detail

      • KieModuleCacheHelper

        public KieModuleCacheHelper()
    • Method Detail

      • writeToStreamWithHeader

        public static void writeToStreamWithHeader​(java.io.OutputStream stream,
                                                   com.google.protobuf.Message payload)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • readFromStreamWithHeaderPreloaded

        public static KieModuleCache.Header readFromStreamWithHeaderPreloaded​(java.io.InputStream stream,
                                                                              com.google.protobuf.ExtensionRegistry registry)
                                                                       throws java.io.IOException,
                                                                              java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • buildRegistry

        public static com.google.protobuf.ExtensionRegistry buildRegistry()
      • intToByteArray

        public static final byte[] intToByteArray​(int value)
      • byteArrayToInt

        public static final int byteArrayToInt​(byte[] b)
      • longToByteArray

        public static final byte[] longToByteArray​(long value)
      • byteArrayToLong

        public static final long byteArrayToLong​(byte[] b)